Hi all, reposting to the group from here:
http://stackoverflow.com/questions/42411400/executing-playspec-tests-with-scalatest-from-packaged-binaryI 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