197 questions
0 votes
0 answers
28 views
How to use pitest CrossModule?
I have a set of maven projects. civitas-ng-crypto contains classes I want to mutation test. civitas-ng-cryptotest contains the tests for it. civitas-ng-cryptotest/pom.xml contains: <...
0 votes
1 answer
111 views
Clojure mutant – can't kill a surviving mutant in binary search
I'm writing a classic binary search function in Clojure and testing it with the mutant mutation testing library. My tests work fine in terms of correctness, but mutation testing reports one surviving ...
1 vote
1 answer
271 views
Why does a mutant survive in PIT mutation testing despite seemingly causing infinite recursion?
I'm performing mutation testing using PIT in a Java project and encountered a case where a mutant survives even though it should cause a stack overflow error. I am able to fix the issue with different ...
0 votes
1 answer
145 views
Adding a prefix command to all ctest executions
I am following the instructions to use the mutation testing framework Mull and integrating it with CMake https://mull.readthedocs.io/en/latest/tutorials/CMakeIntegration.html The last step involves ...
2 votes
1 answer
196 views
Multi-threaded mutation testing with Laravel
I am trying to use Infection (https://infection.github.io/) on a Laravel 10 codebase and am running into issues when running Infection with more than 1 thread. Running it single threaded is not ideal ...
0 votes
1 answer
184 views
Why does Golang's coverage report mark case statements in a switch as not tracked?
I'm running into an issue with Golang's coverage report where case statements within a switch block are marked as not tracked, even though I have written tests that execute these cases. Is this a ...
1 vote
0 answers
263 views
How to exclude calls that are being done inside a logger when using PIT Mutation Testing?
I'm using PIT mutation testing in a Java project (version 21), and I'm facing an issue regarding the exclusion of log calls from the mutation process. In my codebase, I have several log statements ...
0 votes
1 answer
433 views
Can I run Pitest on only 2 test files (no mutations found issue)?
So I'm having issues with the following error when running Pitest "Skipping coverage and analysis as no mutations found". The advice I've seen so far seems to be editing the maven or gradle ...
1 vote
1 answer
73 views
Change execution directory
I'm playing around with stryker.net but get a file not found exception, which is not unusual, because I've got some dependencies which are stored in an other directory, where my output files are ...
1 vote
1 answer
177 views
C# - operator overloading through inheritance
I am trying to come up with the way to implement a way to perform a Mutation test on my class (yes I am aware of Stryker .NET). For the sake of simplicity, let's say that I want to write a Mutator ...
1 vote
1 answer
2k views
PITest with gradle Unsupported class file major version
I'm trying to get pitest running in this java gradle project but having a VERY difficult time... 😢 I have at least two problems: one about packages and one about Java versions. 1) The first issue is ...
0 votes
0 answers
450 views
Problem with pit mutation: "Replaced long addition with subtraction"
I'm newbie with mutation testing. I'm using Pit and in the following line of code there are 4 mutations of the same type: Replaced long addition with subtraction long newsize = position + ...
0 votes
1 answer
314 views
Why Does Stryker Fail To Run For This TypeScript Express Project?
I have a public repo here that is a simple ExpressJS NodeJs project in TypeScript which uses Jest for unit tests. When I run npx stryker run --fileLogLevel trace --logLevel debug though I get this ...
1 vote
2 answers
452 views
Facing (Kill ratio is NaN% (0 0)) Issue when running Mutation test pittest in Jenkins
Hi we recently migrated from java 11 to java 17 after migration, We are facing following Issue when running MutationTest in Jenkins Kill ratio is NaN% (0 0) when we run in Jenkins <plugin> <...
0 votes
2 answers
544 views
Simple mutation unit testing erroneously report survival of the mutation of the exception message
Suppose we have a Calculator with a divide method throwing error if the denominator is 0: public class Calculator { public double Divide(int x, int y) { if (y == 0) ...