What is the easiest way to count my scala tests?

I want to be able to read all scala tests in a directory or its subdirectory.

I am using org.scalatest. Can anyone suggest a quick way to do this? Either from a test source, or from a test output?

+4
source share
1 answer

According to the Scalatest main page, the number of tests should be displayed when starting the tests on the command line:

$ scala -cp scalatest_2.9.0-2.0.M3.jar org.scalatest.run StackSpec
Launch the launch. Expected number of tests: 2
StackSpec:
Stack
- must expose last-in-first-order values
- should throw a NoSuchElementException if an empty stack is thrown
Startup completed in 96 milliseconds.
Total number of tests: 2

+4
source

All Articles