Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
8k views

Pitest - Mutation Test failure - negated conditional → SURVIVED

I added a conditional operator in my code like: String test;//assigned with some value result = test != null ? test : ""; This fails in mutation testing with the reason of negated ...
RagaSGNur's user avatar
  • 359
2 votes
1 answer
1k views

Unnecessary null check in mapstruct

I'm using mapstruct in my project, and recently went to add some 'mutation analysis' using pitest. The problem I have is that a mutant is created on some generated code, and I cannot fix my test to ...
baraber's user avatar
  • 3,356
3 votes
4 answers
7k views

PIT Coverage generation minion exited abnormally

i see the following stacktrace when running the pitest gradle task in my project after adding all the required configurations in build.gradle. Can you please help me on this ? I'm using 1.5.1 version ...
Avinash Garimella's user avatar
2 votes
3 answers
12k views

What does removed call to "com.some.Filename::someMethodName" --> SURVIVED mean in pitest?

What does removed call to "com.some.Filename::someMethodName" --> SURVIVED mean in pitest. Does it mean that if that method call is removed, the code will still work properly?
Shruti Joshi's user avatar
3 votes
1 answer
269 views

Can I get a quality gate to fail if mutation coverage is not high enough?

We are using the default 'SonarQube way' quality gate, which has a 'Mutations Coverage' setting, however this does not seem to cause the gate to fail. For example, I have a small test project that ...
John Davis's user avatar
14 votes
2 answers
1k views

Are there any good mutation testing tools for ruby 1.9 and RSpec2?

I used to use Heckle, but it is incompatible with ruby 1.9 because of issues with ParseTree. I've looked for alternatives, but the only thing that looked promising was Chaser, and that did not have ...
Matt Van Horn's user avatar
50 votes
11 answers
8k views

Is mutation testing useful in practice?

Do you have any examples of real life applications of mutation testing? Does it work better than simple test coverage tools? Or is it useless? What are the advantages/disadvantages of mutation ...
Mnementh's user avatar
  • 51.4k