Requirements: JDK 1.8 and sbt
sbt test
sbt run
See this Stack Overflow question.
How to get commands like these to work as intented, outside sbt console?
$ sbt test-only services.UserServiceSpec
$ sbt test-only -- include unit
Try it; both of the above run all tests.
See this Stack Overflow question.
The recommended Play 2.4 approach of using classes and DI (instead of singletons), does not seem to work seamlessly with Specs2, Play's default test framework in all cases.
Solution: cleanest way to get classes wired up also in tests seems to be a DI test helper along these lines