How to restart SBT only failed tests

Is there a way for SBT to re-run only those tests that failed in the last run of the test suite? For example, if I run sbt test and 3 of the 20 tests that I ran failed, is there any command that I can run so that SBT simply restarts those 3 tests that did not run?

In particular, I use the Scala Test and Scala Verify the tests that I run through SBT.

+6
source share
1 answer

If you are using the latest version of sbt, just run sbt testQuick.

http://www.scala-sbt.org/0.13/docs/Testing.html

+6
source

Source: https://habr.com/ru/post/1015481/


All Articles