I moved my unit tests from :
class UserSpec extends PlaySpec with OneAppPerTest with BeforeAndAfter with AsyncAssertions
{
To :
class UserSpec @Inject() (implicit exec: ExecutionContext, db: DBConnectionPool)
extends PlaySpec with OneAppPerTest with BeforeAndAfter with AsyncAssertions
{
Everything was ok with the first version, but now, when I launch tests, I get the following result :
[info] No tests were executed.
[success] Total time: 4 s, completed Dec 5, 2016 8:35:24 PM
Note that I don't really want my tests to run with the same dependency injected in both tests and production. Thanks !