October 2016
Intermediate to advanced
198 pages
3h 52m
English
SBT recognizes Specs2 as a test framework; therefore, it is the most common way to run Specs2 tests. The fact that SBT considers Specs2 a test framework enables SBT to execute any class or object that is extending the Specification abstract class. The test target of SBT will execute any specification within the src/test/scala directory:
sbt> test
You can also run individual tests using the test-only target:
sbt> test-only org.packt. EmployeeAgeDataTableSpecification
Read now
Unlock full access