Play! framework: customize which tests are run

后端 未结 5 989
温柔的废话
温柔的废话 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条回答
  •  旧时难觅i
    2021-02-13 15:44

    If you want to pass several arguments you can add several strings to one Test.Argument

    testOptions in Test += Tests.Argument("include", "unit")
    

    There are examples of this in the specs2 User Guide here and in the Play documentation there.

提交回复
热议问题