Demo showing how to use annotations to tag tests with Scalatest 2.0
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Scalatest tagging example

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.

Quick Info

  1. Run sbt
  2. 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.
  3. Now try test-only * -- -l tags.RequiresDb. You should see only output from the untagged test.