Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
422 views
in Technique[技术] by (71.8m points)

pitest - PIT does not find any test

I am running PIT as follows on a multi module Maven project:

mvn org.pitest:pitest-maven:mutationCoverage -s settings.xml -pl :module-name

The module contains many unit tests which pass when invoking mvn test.

PIT does not find any test, here is the relevant extract from the log:

9:15:40 AM PIT >> INFO : Sending 93 test classes to minion
9:15:40 AM PIT >> INFO : Sent tests to minion
9:15:40 AM PIT >> INFO : MINION : 9:15:40 AM PIT >> FINE : Expecting 93 tests classes from parent
9:15:40 AM PIT >> FINE : Tests classes received
9:15:40 AM PIT >> INFO : Checking environment

9:15:41 AM PIT >> INFO : MINION : 9:15:41 AM PIT >> INFO : Found  0 tests

9:15:41 AM PIT >> INFO : MINION : 9:15:41 AM PIT >> INFO : Dependency analysis reduced number of potential tests by 0

All unit tests use JUnit 4 and the test assertions are formulated using AssertJ, not the built-in JUnit assertion APIs. I read through all evident documentation and questions and all typical pitfalls (example: using assert keyword or using JUnit 5) seem to not apply to my case.

I'm quite clueless on how to make PIT find my tests.

Any pointer what else I can try?

question from:https://stackoverflow.com/questions/65951016/pit-does-not-find-any-test

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...