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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…