This example demonstrates how easy it is to tag tests for ignoring with annotations. Example uses SBT 0.13 and Scalatest 2.0. Verified also with SBT 0.12.4.
- Run sbt
- Try to execute tests using
test
command. You should see output showing that 'before all' and 'after all' blocks ran, as well as standard test output. - Now try
test-only * -- -l tags.RequiresDb
. You should see only output from the untagged test.