I am building a Scala project in the standard directory layout using sbt. I want to run sbt console and import my unit tests so that I can play with them in the Sca
sbt console
Use test configuration scope, like this:
test
sbt> test:console
For more information, see Scopes in the sbt documentation.
With specs2 for example, you can go:
sbt> test:console console> import mytestpackage._ console> import org.specs2._ console> specs2.run(new MySpec)