Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test-tests/shared/src/test/scala/zio/test/SuiteAllSpec.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package zio.test
import zio._
import zio.test.TestAspect.ignore

object SuiteAllSpec extends ZIOSpecDefault {

Expand Down Expand Up @@ -29,6 +30,11 @@ object SuiteAllSpec extends ZIOSpecDefault {
assertCompletes
)
}
suiteAll("a") {
test("b") {
ZIO.fail("boom").as(assertCompletes)
} @@ ignore
}

}
.provide(ZLayer.succeed(123))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SmartSpecMacros(val c: whitebox.Context) {
val refined = internal.refinedType(allEnvs, c.prefix.tree.symbol)

q"""
val specBuffer = scala.collection.mutable.ListBuffer.empty[Spec[$refined,Nothing]]
val specBuffer = scala.collection.mutable.ListBuffer.empty[Spec[$refined,Any]]
..${acc.reverse}
_root_.zio.test.suite($name)(
specBuffer.toList:_*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package zio.test
trait ZIOSpecVersionSpecific[R] {
// SCALA 2

def suiteAll(name: String)(spec: Any): Spec[Nothing, Nothing] =
def suiteAll(name: String)(spec: Any): Spec[Nothing, Any] =
macro SmartSpecMacros.suiteImpl
}