Search code examples
scalasbtscalatest

Manually exclude some test classes in sbt


I usually do below command in my CI:

clean update compile test publish

However, I'd like to exclude 1 (or a few) test class from the sbt command line.

How can I do this? (I don't want to change my code to use ignore, etc)


Solution

  • Two possible options

    1. test-only See http://www.scalatest.org/user_guide/using_scalatest_with_sbt
    2. Tags http://www.scalatest.org/user_guide/tagging_your_tests