-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jenkinsci/survived-mutations
Return survived mutations as mapping of lines to a list of mutations
- Loading branch information
Showing
7 changed files
with
114 additions
and
188 deletions.
There are no files selected for viewing
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 was deleted.
Oops, something went wrong.
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
20 changes: 20 additions & 0 deletions
20
src/test/resources/edu/hm/hafner/coverage/parser/mutation-with-blocks-and-indexes.xml
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,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mutations> | ||
<mutation detected='false' status='SURVIVED' numberOfTestsRun='1'> | ||
<sourceFile>LookaheadStream.java</sourceFile> | ||
<mutatedClass>edu.hm.hafner.util.LookaheadStream</mutatedClass> | ||
<mutatedMethod>getFileName</mutatedMethod> | ||
<methodDescription>()Ljava/lang/String;</methodDescription> | ||
<lineNumber>5555</lineNumber> | ||
<mutator>org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator</mutator> | ||
<indexes> | ||
<index>5</index> | ||
</indexes> | ||
<blocks> | ||
<block>0</block> | ||
</blocks> | ||
<killingTest/> | ||
<description>replaced return value with "" for edu/hm/hafner/util/LookaheadStream::getFileName | ||
</description> | ||
</mutation> | ||
</mutations> |
17 changes: 17 additions & 0 deletions
17
src/test/resources/edu/hm/hafner/coverage/parser/mutation.xml
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mutations> | ||
<mutation detected='true' status='KILLED' numberOfTestsRun='5'> | ||
<sourceFile>CoverageNode.java</sourceFile> | ||
<mutatedClass>edu.hm.hafner.coverage.CoverageNode</mutatedClass> | ||
<mutatedMethod>add</mutatedMethod> | ||
<methodDescription>(Ledu/hm/hafner/coverage/CoverageNode;)V</methodDescription> | ||
<lineNumber>175</lineNumber> | ||
<mutator>NotExisting</mutator> | ||
<index>12</index> | ||
<block>1</block> | ||
<killingTest> | ||
edu.hm.hafner.coverage.CoverageNodeTest.[engine:junit-jupiter]/[class:edu.hm.hafner.coverage.CoverageNodeTest]/[method:shouldAddChildren()] | ||
</killingTest> | ||
<description>removed call to edu/hm/hafner/coverage/CoverageNode::setParent</description> | ||
</mutation> | ||
</mutations> |