dimanche 12 avril 2020

org.scalatest.Suite execute method doesn't fails for failed test case in intellij

When running scala test in intellij using ScalaTest support in the IntelliJ Scala plugin.

test case pass fail status is visible in intellij as shown below :-

Please see Test Run window

But when same test is executed using org.scalatest.Suite execute method, then in the console, correct test case status is displayed, but in the status window all tests are displayed as green as shown below :-

Please see Test Run window

Kindly suggest, how to get the correct status, when we are not running test directly. Sample code is available on github :-

https://github.com/moglideveloper/executetest/tree/master/SuiteExecute






Aucun commentaire:

Enregistrer un commentaire