Testing with sbt command line

Can someone help me figure out which sbt command line to use?

From the unix command line, I can test any particular of my scala testing classes.
for example>

shell> sbt compile testOnly RubikTest

However, I can’t figure out how to run “all the tests”. Maybe “all the tests” has no meaning. What I mean by it is to mimic what happens when I activate this menu item in IntelliJ

sbt test? Or I am missing something from the question?

I’ll give it a try. sbt test. I don’t understand in that case why I need compile in the former case sbt compile testOnly RubikTest.

You shouldn’t need. test and testOnly both depend on compile. Calling it before is just redundancy.

1 Like