Open sakthivee opened 2 months ago
You may not have the relevant pitest test plugin installed (JUnit5, testng etc).
If this is not the problem, you'll need to post a complete, minimal project that reproduces the issue.
I've tried various combinations of all of the pitest plugins and none of them worked. I've just created this repository which has the same folder structure of my project.
https://github.com/sakthivee/pitest.git
Hope this helps. And, I've also tried the pitmp plugin and even that didn't help.
Thanks for the example, I understand the structure now. Pitest does not support projects where the tests are not within the same module as the code they test. To use pitest you'd need to restructure the project, or create your own tooling based on the pitest command line app.
May I know how can I create my tooling using the command line app? I've tried to follow the command line quick start documentation and it still had the same error.
I have a maven project where there are two folders with source code and unit test cases in each folder. There are three pom.xml files in total - one in root level and one in each folder. The source code folder does not have any test cases and has the standard maven directory structure of src/main/java/. The unit test folder also does not have any of the source code and the directory structure inside that folder will be src/test/java/. However, the unit test case pom.xml has a dependency on the source code pom.xml and I also have a maven-resources plugin from which I've moved the generated class files to the target folder inside the unit test folder.
But when I run pitest, there are no errors and there are no tests which are getting run either. This is the output I'm getting.
How do I configure Pit to take the test classes? I've tried and and they won't work.