pitest Questions
2
Solved
I want to generate mutation test coverage. I am doing POC on PI Test
but it is not taking my test classes and failing. I have configured PTTest plugin in pom.xml. I checked the target class package...
2
Solved
I have a small Java 11 example with a JUnit 5 test that results in a pitest result of:
changed conditional boundary → SURVIVED
Main class:
public final class CheckerUtils
{
private CheckerU...
5
Solved
When running mvn org.pitest:pitest-maven:mutationCoverage, I get the error as follows (
Environment: Windows 10, Maven 3.6.1, Java 11, junit-jupiter 5.4.1, pitest 1.4.7)
[ERROR] Failed to execute ...
Spallation asked 14/4, 2019 at 21:5
5
i have problem with my configuration of maven and pitest.
Pitest generation mutation is ok but he can't see my class of test ..
if you have any solution :D
I have main source like that /src/m...
Croquet asked 18/2, 2016 at 8:6
2
I have a method that returns a custom object
public MyObject getTheObject(){
...
return muObject;
}
its unit test checks that the object returned by getTheObject() method is not null
@Test
publi...
Calvities asked 11/3, 2019 at 14:47
1
I have the following:
public class UnsetProperty extends Command {
@Resource
private SetProperty setProperty;
public String parse(String[] args) {
if (args.length != 4) {
throw new RuntimeE...
Sour asked 16/3, 2015 at 12:59
3
Solved
I have to exclude my integration tests from their execution by PIT. There is an option excludedTestClasses since version 1.3.0. I tried to pass over these tests by the following configration of the...
Ingathering asked 27/1, 2018 at 1:58
1
Solved
folks!
I've tried to use the pitest-maven plugin in my Maven / Java project and it is apparently failing to generate an aggregated report (taking into consideration that I have a multi-module proje...
Drill asked 6/4, 2018 at 11:35
1
Solved
I am trying to generate a PIT Test Coverage Report and I need to exclude a certain package.
These are the used configurations :
<plugin>
<groupId>org.pitest</groupId>
<art...
Acoustics asked 17/4, 2018 at 11:23
2
It seems that this is a quite common issue and I personally stumbled on it at least a couple of times.
Some of the main causes being:
Forgetting to run the test (and thus create the test classes...
1
Solved
Our projects are all set up with a master parent for the entire company. For the project I'm working on, we have a root pom that references that parent with many modules underneath it. Attempting t...
Danyluk asked 31/3, 2017 at 23:36
1
I am facing a problem with the SonarQube project. I want to calculate some statistics about test quality and I am using pitest. Unfortunately, it doesn't find any test to mutate.
This is the pom.x...
1
Solved
I am trying to exclude PIT from mutating I/O methods, such "close" and "flush". Here is my Maven configuration:
<plugin>
<groupId>org.pitest</groupId>
<ar...
Canso asked 10/6, 2016 at 7:29
1
How should i get rid of this warning and add the timeout constant for pitest?
My command is:
mvn jacoco:report org.pitest:pitest-maven:mutationCoverage sonar:sonar -Dpitest.timeoutConst=8000
Bu...
Cist asked 15/4, 2016 at 8:17
1
Solved
My gradle pitest is not able to give me the right results. It looks like it is not able to locate my test files.
I have the following build.gradle file:
apply plugin: "java" apply plugin: "maven"...
1
Solved
It happens that there are sometimes lines of code or methods that can't produce mutants that are going to be killed by any relevant test. (For instance I may be using a null pattern object, and som...
Glottology asked 18/12, 2015 at 7:44
1
According to Pitest's documentation, it seems that this should be simple, but it is giving me some trouble. I should be able to have
java -cp <your classpath> \
org.pitest.mutationtest.comm...
Unbelt asked 18/2, 2015 at 5:39
1
Solved
While trying to run a PIT mutation test I get the following error:
mutationCoverage failed: All tests did not pass without mutation when calculating line coverage. Mutation testing requires a gr...
Painting asked 11/6, 2015 at 19:12
1
Solved
How to use Robolectric and PIT for testing an Android Application?
With Robolectric, you can run Android Tests in the JVM. With PIT you can show line coverage and do mutation testing. For me, it's...
Fain asked 27/11, 2013 at 11:23
1
Solved
I want to integrate some mutation testing to ensure the quality of my junit tests. I want to have the results in the sonar dashboard of my project.
The sonar pitest plugin seems to do what I want,...
Purchase asked 8/3, 2013 at 8:45
1
© 2022 - 2024 — McMap. All rights reserved.