Comments (7)
Hey @punkratz312! If I'm reading the screenshots right, you're using JUnit 5, but without the pitest-junit5-plugin. Can you try adding it?
from pitest.
Thank you @Stephan202
I have already tried that before without success:
pitest-junit5-plugin:
Project has no tests, it is empty:
from pitest.
The error message is misleading/wrong.
The problem is that the 'e2e-acceptance-tests' project has no production code to mutate, only test code.
from pitest.
Thank you for the hint @hcoles. That is kind of true, as the target code (to mutate) lives in another module and not directly in the executing 'e2e-acceptance-tests'-module. The code is still included and referred as a dependency.
Included and hopefully accessable for mutation:
Is therefore the byte code mutation not possible?
from pitest.
Pitest doesn't support tests in a seperate module than the code under tests. From the name of the module, it sounds like these tests would not be suitable for mutation testing anyway. For practical reasons, mutation testing requires fast running unit tests. As a fundamental implementation detail, pitest requires tests that run in the same JVM as the code under test. This is often not the case for "end to end" tests that communicate with the code under test via http.
from pitest.
Thank you for the update; appreciate it. Perhaps a more precise error message would be helpful in making things clearer.
from pitest.
Seems to work fine with the end-to-end (E2E) stack. Yes, indeed, the tests actually only test the app black box over the web interface, just like the real client would do.
Still, achieving 100% line coverage with this method on a normal check:
This tremendous tool, Pitest, is capable of testing with this high-level approach as well as with normal unit tests, which is maybe what it was designed for in the first place.
Now it's actually the same code, all within one project. Thanks a lot!
from pitest.
Related Issues (20)
- 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
- PIT cannot detect tests and classes when package starts with "com" HOT 11
- 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
- Formula for mutation score calculation HOT 2
- pitest-maven (1.16.1) 6 transitive vulnerabilities found HOT 2
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.