开发者

Running particular named junit 4.8 tests in intellij

开发者 https://www.devze.com 2023-01-07 00:00 出处:网络
I am using junit 4.8 and intellij 8 and i would like to only run tests inside the IDE which are named someth开发者_高级运维ing like *UnitTest.java.

I am using junit 4.8 and intellij 8 and i would like to only run tests inside the IDE which are named someth开发者_高级运维ing like *UnitTest.java.

How can this be achieved?


Found a solution with cpsuite. http://www.johanneslink.net/projects/cpsuite.jsp

Pitty it's not in the maven repo.

import org.junit.extensions.cpsuite.ClasspathSuite;
import org.junit.runner.RunWith;

@RunWith(ClasspathSuite.class)
@ClasspathSuite.ClassnameFilters(".*UnitTest")
public class UnitTestSuite {
}
0

精彩评论

暂无评论...
验证码 换一张
取 消