Pie*_*hat 3 java junit junit4 playframework playframework-2.3
在我全新的Play 2.3.1 Java应用程序中,我编写了第一个测试,但它们根本不起作用.我启动时activator test,一个简单的测试类直接放在test目录中的默认包中未到达.
import org.junit.Assert;
import org.junit.Test;
public class TestTest {
@Test
public void testTest() {
Assert.assertEquals(true, false);
}
}
Run Code Online (Sandbox Code Playgroud)
当我启动时activator testOnly TestTest,我有以下输出:
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for test:testOnly
[success] Totaltime: 6 s, completed 11 juil. 2014 09:08:38
Run Code Online (Sandbox Code Playgroud)
可能是什么原因 ?