-
Notifications
You must be signed in to change notification settings - Fork 14
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
Failing to run pitmp/descartes on xwiki-commons-component #18
Comments
Hi @vmassol , did you had a look at suggestions from Henry here, https://stackoverflow.com/questions/30789480/junit-tests-pass-but-pit-says-the-suite-isnt-green . In my case it was one of the reasons mentioned in the list. |
@sushantchoudhary Thanks but as I mentioned in my message above I have no problem running PIT and Descartes on this module. It's only pitmp that has a problem. So I assumed the issue was about someone that pitmp does. Any idea? Thanks! |
@vmassol Did you try to run PitMP directly from the module directory ? This is a limitation, PitMP can be called only from the root directory otherwise it will not work. You can use targetModules/skippedModules to specify in whihc directory you want to run PitMP. |
Yes this is what I did (I didn't try running it in a different way). Ok so it works only from the top level; you should mention that in big bold letters on the pitmp home page since this is not how standard maven plugins work. Also it could be nice to provide a better error message when not started from the top level maybe :) I'll try again later. thanks! |
I'll update the README and I'll add an issue about this limitation (I thought I already did it, but it seems I didn't :-) ), and meanwhile I'll try to add the error message in the next release. |
You can use the properties "targetModules" and "skippedModules" to manage in which directories you want to run PitMP. Properties ares documented in the README: https://github.com/STAMP-project/pitmp-maven-plugin#pitmp-properties |
Still not working for me. Here's what I did:
I also tried with: I got:
Any idea? Thanks |
I tried this: And it's better :-), but now it fails on xwiki-commons-component-default because of a "non green test suite" And I have the same error with Descartes (mvn eu.stamp-project:pitmp-maven-plugin:descartes ...) |
It seems you're missing the system property name in the |
Only when I copied/pasted the command line, not in my script. :-)
There is no property to exclude only a method, so I added an issue (#37 ) for this feature. |
Hi. I can run pit and descartes on this XWiki module (https://github.com/xwiki/xwiki-commons/tree/master/xwiki-commons-core/xwiki-commons-component) but it fails when I follow the quick start guide of pitmp:
What I did:
mvn clean install
mvn mvn eu.stamp-project:pitmp-maven-plugin:descartes
Any idea? Thanks
The text was updated successfully, but these errors were encountered: