ScalaTest in sbt: is there a way to run a single test without tags?

后端 未结 5 1746
不知归路
不知归路 2020-12-04 05:46

I know that a single test can be ran by running, in sbt,

testOnly *class -- -n Tag

Is there a way of telling sbt/scalatest to run a single

5条回答
  •  孤街浪徒
    2020-12-04 06:13

    Just to simplify the example of Tyler.

    test:-prefix is not needed.

    So according to his example:

    In the sbt-console:

    testOnly *LoginServiceSpec
    

    And in the terminal:

    sbt "testOnly *LoginServiceSpec"
    

提交回复
热议问题