Search code examples
sbtsbt-plugin

SBT Plugins: Is it possible to run scripted for a single test instead of running all tests?


I have 5 scripted tests to test my sbt plugin. All of them take long to run. I sometimes want to run just one of the tests.

Is it possible to specify to scripted which test to run?


Solution

  • You can pass the path of the test as an argument to the scripted command.

    For example, to run a test in <project>/src/sbt-test/foo/bar, run scripted foo/bar from sbt:

    > scripted foo/bar