-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>> Ran 0 tests (0 tests per mutation) #1352
Comments
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. 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.
The text was updated successfully, but these errors were encountered: