开发者

Cobertura makes my unit test fail. How to solve it?

开发者 https://www.devze.com 2023-04-11 16:31 出处:网络
I have a java class in a java project. I wrote 3 test cases for it with junit. The test cases are successful if I run them in E开发者_C百科clipse or mvn test in cmd. But every time I run them with mvn

I have a java class in a java project. I wrote 3 test cases for it with junit. The test cases are successful if I run them in E开发者_C百科clipse or mvn test in cmd. But every time I run them with mvn cobertura:cobertura, they all fail. However every other test case in the same project will pass.

Any suggestions? Or has someone seen this before?

Thanks in advance. :)

0

精彩评论

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

关注公众号