Scalatest Runner not finding any tests

186 views
Skip to first unread message

Brett Cave

unread,
Mar 3, 2017, 10:33:19 AM3/3/17
to scalatest-users
Hi all, reposting to the group from here: http://stackoverflow.com/questions/42411400/executing-playspec-tests-with-scalatest-from-packaged-binary

I have a Play project with functional tests. I am able to execute the tests with SBT. They are testing with a browser against a deployed application. Instead of executing the tests with SBT / from source, I'd like to compile & package them and run from the package. However, when I run the test runner, no tests are found:

$ java -cp target/scala-2.10/myproject-acceptance-test-1.0.jar org.scalatest.tools.Runner -o -u results
Discovery starting.
Discovery completed in 20 milliseconds.
Run starting. Expected test count is: 0
DiscoverySuite:
Run completed in 57 milliseconds.
Total number of tests run: 0
Suites: completed 1, aborted 0
Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0

I have tried -s, -m, -w, -q switches for the runner. In my original post, I was using sbt assembly to package all the dependencies into 1 jar but have also tried with a "test:package" jar and manually adding the libraries to the CP.

Any advise on how to get Scalatest to execute the tests from binary?

Regards,
Brett

Ivan Subotic

unread,
Nov 1, 2017, 11:26:48 AM11/1/17
to scalatest-users
Hi Brett

Any luck on this one? I have the same problem.

Regards,
Ivan
Reply all
Reply to author
Forward
0 new messages