使用Play 2.3运行JUnit测试时可以获得Play 2.2的详细信息

时间:2015-02-12 15:09:42

标签: testing junit playframework typesafe-activator

我在游戏框架和游戏2.3的JUnit测试中遇到了问题

运行时:"激活器测试"那么它运行正常,但是......

[info] Loading project definition from /.../test/toto/project
[info] Set current project to toto (in build file:/home/jenkins/.../)
[info] Compiling 6 Java sources to /home/jenkins/automated_tests/.../toto/target/scala-2.11/test-classes...
[warn] application - do execute tests in class utils.UtilsTest
[warn] application - do execute tests in class test_marketcity.BasicTest
[info] Passed: Total 14, Failed 0, Errors 0, Passed 14
[success] Total time: 29 s, completed Feb 12, 2015 9:48:51 AM

没有关于已经运行的测试,只有完整的测试总数(这里是14)。在游戏2.2中,我有一个更详细的日志,其中也包含每个测试:

[info] x firstTest (x means here it failed)
[info] + secondTest (+ means here it succeeded)

我是否必须在此处提供特定选项以获取更多详细信息? THX

1 个答案:

答案 0 :(得分:0)

对激活剂进行测试是一个常见问题。我通常在测试之前运行activator clean以获得输出。有时从sbt运行测试有帮助。