MutationResult.getSucceedingTests() always returns empty list
See original GitHub issueTrying to write a MutationResultListener to generate specific reports. My class extends org.pitest.mutationtest.MutationResultListener .
In the handleMutationResult(ClassMutationResults results) method, I tried the following:
for (MutationResult mutation : results.getMutations()) {
List<String> succedingTests = mutation.getSucceedingTests();
for(String succedingtest : succedingTests) {
out.println("Succeeding test:" + succedingtest);
}
List<String> killingTests = mutation.getKillingTests();
for(String killingtest : killingTests) {
out.println("Killing test:" + killingtest);
}
}
The code is properly called (and getKillingTests() works fine).
But the list returned by getSucceedingTests() is always empty (either mutations are killed, or not, or part of them).
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Couchbase MuteteInResult always returns Index 0 is invalid ...
In couchbase java sdk I am trying to change a Boolean field in database. I am trying to do as following: public boolean...
Read more >S3 Common Prefixes Incorrectly Returns Empty List #1576
The Java code is below. But when I try to list the top-level "folders" in an S3 bucket, I get an empty list....
Read more >Empty array in update payload on update(set) mutation
Report a GraphQL Bug On update (set) mutation the returned array of updated elements is always empty. This doesn't happen with add mutation ......
Read more >Should I return a null value or an empty collection? - Reddit
Return a constant empty collection...which is trivial in Java. Collections.emptyList() will always return the same object, which makes it essentially free.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks; The fullMutationMatrix parameter is not documented… but I found it in the release notes. Problem, when set, my listener is never called: I get a message saying “Full mutation matrix is only supported in the output format XML”, so I can’t use any output format of my own.
Yes, it works but… I had to set outputFormats for both my format and XML.
outputFormats = ['DetailedCSV','XML']
. Otherwise the error “Full mutation matrix is only supported in the output format XML” appears. Searching for this string I found org.pitest.mutationtest.tooling.EntryPoint. There is a method with a hardcoded condition:It explicitly blocks the use of fullMutationMatrix for ‘XML’-containing outputFormats only.