junit.framework.AssertionFailedError: No tests found in错误解决办法



public void TestIDcard() throws Exception{}



报错:junit.framework.AssertionFailedError: No tests found in。。。。。。。。。。。。。。。。。。。


解决办法:

在测试办法前面加test,即把TestIDcard()改为testIDcard()。这样后就可以运行了
原文地址:https://www.cnblogs.com/xiaowangba/p/6314572.html