Comments (11)
If you share a minimum project that reproduces the issues I can take a look and see what is going on.
from pitest.
Fixed in 1.15.7.
Thanks again for reporting.
from pitest.
If you are using gradle, you must explicitly set the target classes parameter (this is automatically populated for maven). Pitest will only mutate classes that match this glob.
from pitest.
Hi @hcoles thanks for responding promptly. I am using target class and what's weird is that there are certain combinations that seems to not detect classes and tests. I did a few tests. for com.sun.* - it does not detect the tests and classes but for ca.sun.* it was detected. Not sure what's wrong with the com.sun package name that makes PITest not detect the tests and classes.
Here are a few screenshots.
![image](https://private-user-images.githubusercontent.com/69646975/301248487-4b85330b-4fe1-4c0a-ad63-5cc0ec9f08c9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUwODM4NDMsIm5iZiI6MTcxNTA4MzU0MywicGF0aCI6Ii82OTY0Njk3NS8zMDEyNDg0ODctNGI4NTMzMGItNGZlMS00YzBhLWFkNjMtNWNjMGVjOWYwOGM5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA3VDEyMDU0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMxNDc0NDFkZDExYzMzYzBhZTVlOTk2N2FhMjllMzM0MWE0YTI5NmFjZjI2NWVlMDEwM2MyNTc3OTg3MWI3MjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JuP_wnQQSpVoOctUBf3mF1CleQ4IH6lY6pYoYoPHJ9o)
![image](https://private-user-images.githubusercontent.com/69646975/301249214-18b16183-2ce3-4a8e-9744-40ce30f2fdb7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUwODM4NDMsIm5iZiI6MTcxNTA4MzU0MywicGF0aCI6Ii82OTY0Njk3NS8zMDEyNDkyMTQtMThiMTYxODMtMmNlMy00YThlLTk3NDQtNDBjZTMwZjJmZGI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA3VDEyMDU0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiNTdkZTNlNDIyOTM1YTlkMDYxZjFiMTE3NWFhNGFmZTVhNzE2NTBlODdlYTZhNjFlNWIzYzg2NjE4Y2QyNmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.P_URzngbsVXHE2MI8mjATlnbRLWl1Tk35g0IGPUBIU4)
![image](https://private-user-images.githubusercontent.com/69646975/301249437-1dfdffe2-2407-41de-ba6b-033096a834f1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUwODM4NDMsIm5iZiI6MTcxNTA4MzU0MywicGF0aCI6Ii82OTY0Njk3NS8zMDEyNDk0MzctMWRmZGZmZTItMjQwNy00MWRlLWJhNmItMDMzMDk2YTgzNGYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA3VDEyMDU0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1ODk4YWVmZjY3ZDg4Nzc2OWU2NjIyNzI2YmJjYmZkODgzNzAzZjU2ZTE2ZmJhNTEzZGNhNGI2YTFjODZkZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.r4pOScl_7U5ThKnbvC_6yRpLJzkBeT2dajacrSVDP7s)
from pitest.
'com.sun' is a package used in legacy parts of the JDK (from Java's roots at sun microsystems). Pitest will not mutate it as it could cause all sorts of problems.
from pitest.
I see. Thank you. One last question before I close the issue. What if there are packages that starts with com.sundance for example - do we have a way to still run pitest on them?
from pitest.
If your target is set to com.sundance.*
that should work without issue.
from pitest.
If your target is set to
com.sundance.*
that should work without issue.
from pitest.
test-learner.zip
Here's a very small gradle project I am working on. Thank you!
from pitest.
Thanks for the project, this is indeed a (very old) and stupid bug in pitest.
The bit of the code that stops pitest from instrumenting jdk classes is missing a '.', so it is filtering "com.sun*" rather than "com.sun.*".
Should be fixed shortly.
from pitest.
Thank you for fixing @hcoles!
from pitest.
Related Issues (20)
- Pitest config allows only whole Test class execution, but it would be good to have option to run single test method from class
- does not allow performance optimization in logic HOT 1
- creation of mutable collection consider as can be avoided HOT 11
- Copy of array(collections) to protect data from changes HOT 1
- Support targeting different JUnit TestEngines using PIT HOT 3
- code might be less elegant if chained call of cast to type is present
- Mutating non-existing lines in Kotlin HOT 3
- Issue in build pulling in old version of java HOT 1
- Conditionals with `isDebugEnabled`
- `avoidCallsTo` not working for internal classes
- Joda-Time Mutation testing requires a green suite Error HOT 1
- Caused by: org.pitest.util.PitError: Coverage generation minion exited abnormally! (MINION_DIED)
- How can i kill this mutation HOT 2
- Allow reusing surefire environmentVariables for pitest HOT 3
- Mutation Coverage failure w/ AspectJ compile-time weaving plus woven deps HOT 1
- PIT Help Error : Couldn't exclude classes / test classes - error - tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite. HOT 3
- Pitest doesn't recognize exception thrown by assert keyword by default HOT 4
- PIT is generating equivalent mutations
- Drop Java 8 Support HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pitest.