org.scalatest.tools.Runner -m switch problems -


i can run org.scalatest.tools.runner specific test can not run multiple tests using runner's -m or -w switches. here shell script run invoke specific test works, , multiple tests not:

#!/bin/sh cp=...:/home/chris/junk/itt-1.0/lib/org.scalatest.scalatest_2.11-3.0.1.jar:...  .../jdk1.8.0_121/bin/java -cp $cp org.scalatest.tools.runner -o -s org.bohdi2.itt.itspec  echo "============================="  .../jdk1.8.0_121/bin/java -cp $cp org.scalatest.tools.runner -o -m org.bohdi2.itt 

the output is:

run starting. expected test count is: 2 itspec: integration test stack - should pop values in last-in-first-out order - should throw nosuchelementexception if empty stack popped run completed in 297 milliseconds. total number of tests run: 2 suites: completed 1, aborted 0 tests: succeeded 2, failed 0, canceled 0, ignored 0, pending 0 tests passed. ============================= discovery starting. discovery completed in 39 milliseconds. run starting. expected test count is: 0 discoverysuite: run completed in 90 milliseconds. total number of tests run: 0 suites: completed 1, aborted 0 tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0 no tests executed. 

it seems discoverysuite not able find tests. test classes extend funspec this:

class itspec extends flatspec matchers {      "integration test stack" should "pop values in last-in-first-out order" in {         // test code ...     } } 

can help? java 1.8.0_12, scala 2.11, , scalatest 3.0.1. running ubuntu. thanks


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -