Questions tagged [mutation-testing]
A method of software testing that involves modifying the source code or compiled intermediate code (Java: byte code, .NET: IL). Test suites that do not fail under each of these "mutations" is considered to be inadequate.
mutation-testing
196
questions
0
votes
0
answers
21
views
Pitest Android: tests did not pass without mutation when calculating line coverage. Mutation testing requires a green suite
I'm having a lot of issues trying to make Pitest run against my Android project. I've solved a lot of problems related with Java/Gradle/Kotlin versions but now I'm stuck in a custom Pitest error:
...
0
votes
1
answer
67
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
90
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
0
answers
30
views
Why Mutpy is not genrating mutant.text file?
calculator.py
def mul(x, y):
return x * y
test_calculator.py
from unittest import TestCase
from calculator import mul
class CalculatorTest(TestCase):
def test_mul(self):
self....
0
votes
1
answer
113
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
45
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
64
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 ...
0
votes
1
answer
686
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
172
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
147
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
299
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
180
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)
...
0
votes
0
answers
148
views
Stryker Mutation test fails when debug statement is added in c# method
Stryker fails to run any test cases under a xunit test class when debug statement is included in the code block.
I have a few test cases covering the below method. Stryker fails to run those tests and ...
0
votes
0
answers
380
views
Wht python package "mutmut" doesn't work with and command "mutmut results" returns error?
Good day. I have a problem with mutmut package. I have installed "mutmut" and create config.cfg
[mutmut]
paths_to_mutate=some_path/to/folder
tests_dir=some_path/to/folder/tests
After I run &...
0
votes
0
answers
71
views
Encountering an error when running mut.py: "mut.py: error: unrecognized arguments"
When i try to run mut.py i encounter this error
C:\Pprogs>mut.py --dcmotor_pid_control --dcmotor_tests -m
usage: mut.py [-h] [--version] [--target TARGET [TARGET ...]] [--unit-test UNIT_TEST [...