Skip to content
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

How to run pitest on Maven projects with separate business code and test code #1237

Closed
wlopper opened this issue Jul 3, 2023 · 2 comments
Closed

Comments

@wlopper
Copy link

wlopper commented Jul 3, 2023

Hello @hcoles , may I ask if the business code and test code of the Maven project are written separately in two modules, and the directory interface is similar to:

pitest-demo
├─apollo-impl
├─apollo-impl-test

Is there any way to display the test results?
I found a relevant issue: #376 Using the pitmp plugin can achieve cross module testing.

But Pitmp has not been updated for a long time. After testing, I found that the current Pitmp plugin does not support versions of pitest maven after 1.4.7. Moreover, if I want to use the arc mate plugin for git incremental code testing in the future, it seems to be very difficult.
Looking forward to your reply @hcoles .

@hcoles
Copy link
Owner

hcoles commented Jul 3, 2023

The pitest maven plugin does not currently support projects where the tests and code under test are in seperate modules.

@wlopper
Copy link
Author

wlopper commented Jul 3, 2023

Thank you for your reply. Perhaps dividing the testing and business code into two modules in the Maven project is not a good architectural design. I will try to change this architectural design.

@wlopper wlopper closed this as completed Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants