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

chore: add a jenkins job to run PIT Descartes #1819

Closed
surli opened this issue Jan 12, 2018 · 6 comments
Closed

chore: add a jenkins job to run PIT Descartes #1819

surli opened this issue Jan 12, 2018 · 6 comments
Labels

Comments

@surli
Copy link
Collaborator

surli commented Jan 12, 2018

In order to obtain automatically a diagnosis related to badly tested methods (see #1818) we should create a Jenkins job with PIT descartes: https://github.com/STAMP-project/pitest-descartes

@surli surli added the chore label Jan 12, 2018
@surli
Copy link
Collaborator Author

surli commented Jan 15, 2018

@surli surli closed this as completed Jan 15, 2018
@monperrus
Copy link
Collaborator

monperrus commented Jan 15, 2018 via email

@Rohitesh-Kumar-Jain
Copy link
Contributor

Hi @surli,

Done in https://ci.inria.fr/sos/job/spoon-pit-descartes/

This link isn't working (404).

Is there any Jenkins job/or any other method that automatically generates badly tested methods?

@monperrus
Copy link
Collaborator

Running https://github.com/STAMP-project/pitest-descartes directly in command line.

@Rohitesh-Kumar-Jain
Copy link
Contributor

@monperrus thanks, should I also update this list after generating badly tested methods?

I tried running https://github.com/STAMP-project/pitest-descartes by first adding plugin in the pom.xml file and running the command mvn clean package org.pitest:pitest-maven:mutationCoverage, but it is generating error:

[ERROR] Failed to execute goal org.pitest:pitest-maven:1.6.4:mutationCoverage (default-cli) on project spoon-core: Execution default-cli of goal org.pitest:pitest-maven:1.6.4:mutationCoverage failed: 6 tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.
[ERROR] See http://pitest.org for more details.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

I am not sure but feel that this is caused by a failing test, but when I am running mvn test it shows BUILD success with : Tests run: 1886, Failures: 0, Errors: 0, Skipped: 13

I would be glad if you may help me rectify this error : )

@monperrus
Copy link
Collaborator

[ERROR] Failed to execute goal org.pitest:pitest-maven:1.6.4:mutationCoverage (default-cli) on project spoon-core: Execution default-cli of goal org.pitest:pitest-maven:1.6.4:mutationCoverage failed: 6 tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite.

This may be a bug in Descartes, to be fixed, see STAMP-project/pitest-descartes#117

@monperrus thanks, should I also update this list after generating badly tested methods?

yes, feel free to PR on it regularly to keep track of your test improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants