Play! framework: customize which tests are run

后端 未结 5 1057
温柔的废话
温柔的废话 2021-02-13 15:11

I have a Play! 2 for Scala application, and I am using Specs2 for tests. I can run all tests with the test command, or a particular specification with test-on

5条回答
  •  天命终不由人
    2021-02-13 15:40

    I'm using Play2.2, and there are 2 ways to do this depending on whether or not you are in the play console.

    1. From the console type: test-only full.namespace.to.TestSpec
    2. From the terminal type: test-only "full.namespace.to.TestSpec"

提交回复
热议问题