-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Update stmt report with mutation testing info
- Loading branch information
Showing
11 changed files
with
397 additions
and
5 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
configurationFiles/mutationTesting/commons-codec-mut.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project=../commons-codec | ||
result=withFailure3/commons-codec/codec | ||
jacoco=configurationFiles/commons-codec/jacoco.exec | ||
javaVersion=6 | ||
mutationtesting=true | ||
updated-stmtreport=../targeted-sosies/results/mutation/commons-codec-stmt.csv | ||
stmtreport=../../sosie-results/data/commons-codec-stmt.csv | ||
mutationreport=../targeted-sosies/results/mutation/commons-codec.json |
8 changes: 8 additions & 0 deletions
8
configurationFiles/mutationTesting/commons-collections-mut.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project=../commons-collections | ||
javaVersion=5 | ||
result=result_nicolas/commons-collections_static_external | ||
jacoco=configurationFiles/commons-collections/jacoco.exec | ||
mutationtesting=true | ||
updated-stmtreport=../targeted-sosies/results/mutation/commons-collections-stmt.csv | ||
stmtreport=../../sosie-results/data/commons-collections-stmt.csv | ||
mutationreport=../targeted-sosies/results/mutation/commons-collections.json |
8 changes: 8 additions & 0 deletions
8
configurationFiles/mutationTesting/commons-io_static-mut.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project=../commons-io | ||
javaVersion=6 | ||
result=result_nicolas/commons-io_static_external | ||
jacoco=configurationFiles/commons-io/jacoco.exec | ||
mutationtesting=true | ||
updated-stmtreport=../targeted-sosies/results/mutation/commons-io-stmt.csv | ||
stmtreport=../../sosie-results/data/commons-io-stmt.csv | ||
mutationreport=../targeted-sosies/results/mutation/commons-io.json |
8 changes: 8 additions & 0 deletions
8
configurationFiles/mutationTesting/commons-lang-mut.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project=../commons-lang | ||
javaVersion=6 | ||
result=result_nicolas/commons-lang_static_external | ||
jacoco=configurationFiles/commons-lang/jacoco.exec | ||
mutationtesting=true | ||
updated-stmtreport=../targeted-sosies/results/mutation/commons-lang-stmt.csv | ||
stmtreport=../../sosie-results/data/commons-lang-stmt.csv | ||
mutationreport=../targeted-sosies/results/mutation/commons-lang.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
project=../gson/gson | ||
javaVersion=5 | ||
result=result_nicolas/gson_swapsubtype | ||
jacoco=configurationFiles/gson/jacoco.exec | ||
mutationtesting=true | ||
updated-stmtreport=../targeted-sosies/results/mutation/gson-stmt.csv | ||
stmtreport=../../sosie-results/data/gson-stmt.csv | ||
mutationreport=../targeted-sosies/results/mutation/gson.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
generator/src/main/java/fr/inria/diversify/util/StmtInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
package fr.inria.diversify.util; | ||
|
||
import fr.ybonnel.csvengine.annotation.CsvColumn; | ||
import fr.ybonnel.csvengine.annotation.CsvFile; | ||
|
||
/** | ||
* Created by nharrand on 04/07/17. | ||
*/ | ||
@CsvFile | ||
public class StmtInfo { | ||
|
||
@CsvColumn("position") | ||
public String position; | ||
|
||
@CsvColumn("isCandidate") | ||
public String isCandidate; | ||
|
||
@CsvColumn("isCandidateDelete") | ||
public String isCandidateDelete; | ||
|
||
@CsvColumn("nbTrial") | ||
public String nbTrial; | ||
|
||
@CsvColumn("nbCompile") | ||
public String nbCompile; | ||
|
||
@CsvColumn("nbSosie") | ||
public String nbSosie; | ||
|
||
@CsvColumn("nbTest") | ||
public String nbTest; | ||
|
||
@CsvColumn("nbAssert") | ||
public String nbAssert; | ||
|
||
@CsvColumn("maxDeep") | ||
public String maxDeep; | ||
|
||
@CsvColumn("meanDeep") | ||
public String meanDeep; | ||
|
||
@CsvColumn("medianDeep") | ||
public String medianDeep; | ||
|
||
@CsvColumn("minDeep") | ||
public String minDeep; | ||
|
||
@CsvColumn("methodNameInTests") | ||
public String methodNameInTests; | ||
|
||
@CsvColumn("methodClassTargetByTests") | ||
public String methodClassTargetByTests; | ||
|
||
@CsvColumn("nbDiff") | ||
public String nbDiff; | ||
|
||
@CsvColumn("nbStaticDiff") | ||
public String nbStaticDiff; | ||
|
||
public int nbMutantSurvived = 0; | ||
public int nbMutantTried = 0; | ||
|
||
|
||
public String toString() { | ||
return "\"" + position + "\"" + "," + | ||
"\"" + isCandidate + "\"" + "," + | ||
"\"" + isCandidateDelete + "\"" + "," + | ||
nbTrial + "," + | ||
nbCompile + "," + | ||
nbSosie + "," + | ||
nbTest + "," + | ||
nbAssert + "," + | ||
maxDeep + "," + | ||
meanDeep + "," + | ||
medianDeep + "," + | ||
minDeep + "," + | ||
methodNameInTests + "," + | ||
methodClassTargetByTests + "," + | ||
nbDiff + "," + | ||
nbStaticDiff + "," + | ||
nbMutantSurvived + "," + | ||
nbMutantTried + "\n"; | ||
} | ||
|
||
public static String header() { | ||
return "\"position\"" + "," + | ||
"\"isCandidate\"" + "," + | ||
"\"isCandidateDelete\"" + "," + | ||
"\"nbTrial\"" + "," + | ||
"\"nbCompile\"" + "," + | ||
"\"nbSosie\"" + "," + | ||
"\"nbTest\"" + "," + | ||
"\"nbAssert\"" + "," + | ||
"\"maxDeep\"" + "," + | ||
"\"meanDeep\"" + "," + | ||
"\"medianDeep\"" + "," + | ||
"\"minDeep\"" + "," + | ||
"\"methodNameInTests\"" + "," + | ||
"\"methodClassTargetByTests\"" + "," + | ||
"\"nbDiff\"" + "," + | ||
"\"nbStaticDiff\"" + "," + | ||
"\"nbMutantKilled\"" + "," + | ||
"\"nbMutantSurvived\"" + "\n"; | ||
} | ||
|
||
} |
Oops, something went wrong.