Skip to content

Instantly share code, notes, and snippets.

@yanivby
Created April 16, 2017 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanivby/d4cc9ecb18d92475e9a6625f14f99484 to your computer and use it in GitHub Desktop.
Save yanivby/d4cc9ecb18d92475e9a6625f14f99484 to your computer and use it in GitHub Desktop.
Adding asynchronous setup to ScalaTest
true was not equal to false
ScalaTestFailureLocation: MyTest$$anonfun$1$$anonfun$apply$mcV$sp$2 at (MyTest.scala:26)
Expected :false
Actual :true
<Click to see difference>
org.scalatest.exceptions.TestFailedException: true was not equal to false
at org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:340)
at org.scalatest.Matchers$AnyShouldWrapper.shouldBe(Matchers.scala:6864)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$2.apply(MyTest.scala:26)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$2.apply(MyTest.scala:26)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:240)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:239)
at org.scalatest.AsyncFunSpecLike$$anon$1.apply(AsyncFunSpecLike.scala:430)
at org.scalatest.AsyncTestSuite$class.withFixture(AsyncTestSuite.scala:313)
at MyTest.withFixture(MyTest.scala:16)
at org.scalatest.AsyncFunSpecLike$class.invokeWithAsyncFixture$1(AsyncFunSpecLike.scala:427)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTest$1.apply(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTest$1.apply(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncSuperEngine.runTestImpl(AsyncEngine.scala:292)
at org.scalatest.AsyncFunSpecLike$class.runTest(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncFunSpec.runTest(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:225)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.whenCompleted(Status.scala:607)
at org.scalatest.Status$class.thenRun(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.thenRun(Status.scala:503)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:475)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:460)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:483)
at org.scalatest.AsyncSuperEngine.runTestsImpl(AsyncEngine.scala:550)
at org.scalatest.AsyncFunSpecLike$class.runTests(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpec.runTests(AsyncFunSpec.scala:2263)
at org.scalatest.Suite$class.run(Suite.scala:1147)
at org.scalatest.AsyncFunSpec.org$scalatest$AsyncFunSpecLike$$super$run(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncSuperEngine.runImpl(AsyncEngine.scala:620)
at org.scalatest.AsyncFunSpecLike$class.run(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpec.run(AsyncFunSpec.scala:2263)
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1340)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1334)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1334)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1010)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010)
at org.scalatest.tools.Runner$.run(Runner.scala:850)
at org.scalatest.tools.Runner.run(Runner.scala)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)
false was not equal to true
ScalaTestFailureLocation: MyTest$$anonfun$1$$anonfun$apply$mcV$sp$3 at (MyTest.scala:30)
Expected :true
Actual :false
<Click to see difference>
org.scalatest.exceptions.TestFailedException: false was not equal to true
at org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:340)
at org.scalatest.Matchers$AnyShouldWrapper.shouldBe(Matchers.scala:6864)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$3.apply(MyTest.scala:30)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$3.apply(MyTest.scala:30)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:240)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:239)
at org.scalatest.AsyncFunSpecLike$$anon$1.apply(AsyncFunSpecLike.scala:430)
at org.scalatest.AsyncTestSuite$class.withFixture(AsyncTestSuite.scala:313)
at MyTest.withFixture(MyTest.scala:16)
at org.scalatest.AsyncFunSpecLike$class.invokeWithAsyncFixture$1(AsyncFunSpecLike.scala:427)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTest$1.apply(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTest$1.apply(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncSuperEngine.runTestImpl(AsyncEngine.scala:292)
at org.scalatest.AsyncFunSpecLike$class.runTest(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncFunSpec.runTest(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:225)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.whenCompleted(Status.scala:607)
at org.scalatest.Status$class.thenRun(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.thenRun(Status.scala:503)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:475)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:460)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:483)
at org.scalatest.AsyncSuperEngine.runTestsImpl(AsyncEngine.scala:550)
at org.scalatest.AsyncFunSpecLike$class.runTests(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpec.runTests(AsyncFunSpec.scala:2263)
at org.scalatest.Suite$class.run(Suite.scala:1147)
at org.scalatest.AsyncFunSpec.org$scalatest$AsyncFunSpecLike$$super$run(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncSuperEngine.runImpl(AsyncEngine.scala:620)
at org.scalatest.AsyncFunSpecLike$class.run(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpec.run(AsyncFunSpec.scala:2263)
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1340)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1334)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1334)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1010)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010)
at org.scalatest.tools.Runner$.run(Runner.scala:850)
at org.scalatest.tools.Runner.run(Runner.scala)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)
Process finished with exit code 0
import org.scalatest.{AsyncFunSpec, Inspectors, Matchers, FutureOutcome}
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.Future
class MyTest extends AsyncFunSpec with Matchers with Inspectors with ScalaFutures {
private def setup(): Future[Unit] = Future.successful()
override def withFixture(test: NoArgAsyncTest): FutureOutcome = {
val f = super.withFixture(test).toFuture
new FutureOutcome(f)
}
describe("MyTest") {
it ("should succeed") {
true shouldBe true
}
it ("should fail") {
true shouldBe false
}
it ("should also fail") {
false shouldBe true
}
it ("should also succeed") {
true shouldBe true
}
}
}
import org.scalatest.{AsyncFunSpec, Inspectors, Matchers, FutureOutcome}
import org.scalatest.concurrent.ScalaFutures
import scala.concurrent.Future
class MyTest extends AsyncFunSpec with Matchers with Inspectors with ScalaFutures {
private def setup(): Future[Unit] = Future.successful()
override def withFixture(test: NoArgAsyncTest): FutureOutcome = {
val f = setup() flatMap { _ =>
super.withFixture(test).toFuture
}
new FutureOutcome(f)
}
describe("MyTest") {
it ("should succeed") {
true shouldBe true
}
it ("should fail") {
true shouldBe false
}
it ("should also fail") {
false shouldBe true
}
it ("should also succeed") {
true shouldBe true
}
}
}
org.scalatest.exceptions.TestFailedException: false was not equal to true
at org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:340)
at org.scalatest.Matchers$AnyShouldWrapper.shouldBe(Matchers.scala:6864)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$3.apply(MyTest.scala:32)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$3.apply(MyTest.scala:32)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:240)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:239)
at org.scalatest.AsyncFunSpecLike$$anon$1.apply(AsyncFunSpecLike.scala:430)
at org.scalatest.AsyncTestSuite$class.withFixture(AsyncTestSuite.scala:313)
at MyTest.MyTest$$super$withFixture(MyTest.scala:17)
at MyTest$$anonfun$2.apply(MyTest.scala:17)
at MyTest$$anonfun$2.apply(MyTest.scala:16)
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
at org.scalatest.concurrent.SerialExecutionContext.recRunNow(SerialExecutionContext.scala:120)
at org.scalatest.concurrent.SerialExecutionContext.runNow(SerialExecutionContext.scala:111)
at org.scalatest.AsyncSuperEngine.runTestImpl(AsyncEngine.scala:295)
at org.scalatest.AsyncFunSpecLike$class.runTest(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncFunSpec.runTest(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:225)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.whenCompleted(Status.scala:607)
at org.scalatest.Status$class.thenRun(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.thenRun(Status.scala:503)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:475)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:460)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:483)
at org.scalatest.AsyncSuperEngine.runTestsImpl(AsyncEngine.scala:550)
at org.scalatest.AsyncFunSpecLike$class.runTests(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpec.runTests(AsyncFunSpec.scala:2263)
at org.scalatest.Suite$class.run(Suite.scala:1147)
at org.scalatest.AsyncFunSpec.org$scalatest$AsyncFunSpecLike$$super$run(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncSuperEngine.runImpl(AsyncEngine.scala:620)
at org.scalatest.AsyncFunSpecLike$class.run(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpec.run(AsyncFunSpec.scala:2263)
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1340)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1334)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1334)
ScalaTest can't report this exception because another preceded it, so printing its stack trace:
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1010)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010)
at org.scalatest.tools.Runner$.run(Runner.scala:850)
at org.scalatest.tools.Runner.run(Runner.scala)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)
true was not equal to false
org.scalatest.exceptions.TestFailedException: true was not equal to false
at org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:340)
at org.scalatest.Matchers$AnyShouldWrapper.shouldBe(Matchers.scala:6864)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$2.apply(MyTest.scala:28)
at MyTest$$anonfun$1$$anonfun$apply$mcV$sp$2.apply(MyTest.scala:28)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:240)
at org.scalatest.AsyncTestSuite$$anonfun$transformToOutcome$1.apply(AsyncTestSuite.scala:239)
at org.scalatest.AsyncFunSpecLike$$anon$1.apply(AsyncFunSpecLike.scala:430)
at org.scalatest.AsyncTestSuite$class.withFixture(AsyncTestSuite.scala:313)
at MyTest.MyTest$$super$withFixture(MyTest.scala:17)
at MyTest$$anonfun$2.apply(MyTest.scala:17)
at MyTest$$anonfun$2.apply(MyTest.scala:16)
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:251)
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:249)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:32)
at org.scalatest.concurrent.SerialExecutionContext.recRunNow(SerialExecutionContext.scala:120)
at org.scalatest.concurrent.SerialExecutionContext.runNow(SerialExecutionContext.scala:111)
at org.scalatest.AsyncSuperEngine.runTestImpl(AsyncEngine.scala:295)
at org.scalatest.AsyncFunSpecLike$class.runTest(AsyncFunSpecLike.scala:441)
at org.scalatest.AsyncFunSpec.runTest(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpecLike$$anonfun$runTests$1.apply(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1$$anonfun$apply$2.apply(AsyncEngine.scala:437)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:225)
at org.scalatest.Status$$anonfun$thenRun$1.apply(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.whenCompleted(Status.scala:607)
at org.scalatest.Status$class.thenRun(Status.scala:223)
at org.scalatest.ScalaTestStatefulStatus.thenRun(Status.scala:503)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:437)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:475)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:460)
at org.scalatest.AsyncSuperEngine$$anonfun$traverseSubNodes$1$1.apply(AsyncEngine.scala:419)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:110)
at scala.collection.immutable.List.foldLeft(List.scala:83)
at org.scalatest.AsyncSuperEngine.traverseSubNodes$1(AsyncEngine.scala:419)
at org.scalatest.AsyncSuperEngine.org$scalatest$AsyncSuperEngine$$runTestsInBranch(AsyncEngine.scala:483)
at org.scalatest.AsyncSuperEngine.runTestsImpl(AsyncEngine.scala:550)
at org.scalatest.AsyncFunSpecLike$class.runTests(AsyncFunSpecLike.scala:474)
at org.scalatest.AsyncFunSpec.runTests(AsyncFunSpec.scala:2263)
at org.scalatest.Suite$class.run(Suite.scala:1147)
at org.scalatest.AsyncFunSpec.org$scalatest$AsyncFunSpecLike$$super$run(AsyncFunSpec.scala:2263)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpecLike$$anonfun$run$1.apply(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncSuperEngine.runImpl(AsyncEngine.scala:620)
at org.scalatest.AsyncFunSpecLike$class.run(AsyncFunSpecLike.scala:478)
at org.scalatest.AsyncFunSpec.run(AsyncFunSpec.scala:2263)
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1340)
at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$1.apply(Runner.scala:1334)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1334)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1011)
at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1010)
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010)
at org.scalatest.tools.Runner$.run(Runner.scala:850)
at org.scalatest.tools.Runner.run(Runner.scala)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2(ScalaTestRunner.java:138)
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:28)
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment