2

sbt "project camera-answer" testOnly com.camera.parser.UtilTest

I run the test above. But it does no bussiness, it also runs all the tests.

How can I run one test only in sbt?

Xiaolin Wu
  • 117
  • 11

1 Answers1

6

To use from the command line, individual commands must be in quotes, like you did for project camera-answer:

$ sbt "project camera-answer" "testOnly com.camera.parser.UtilTest"
Kevin Hoerr
  • 1,433
  • 8
  • 17