hcoles/pitest

Support stryker json output

Open

#592 opened on Apr 4, 2019

 (8 comments) (1 reaction) (0 assignees)Java (371 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (1,849 stars)
PR merge metrics
 (Avg merge 17h 18m) (1 merged PR in 30d)

Description

The stryker team have put together a language agnostic format for displaying mutation results.

Some changes might be required to the format, but It would be good to support this with a view to eventually replacing the aging existing report output.

https://github.com/stryker-mutator/mutation-testing-elements/issues/18

This ought to be relatively straightforward. One possible issue is that pitest (I think, its been a long time since I looked at the reports) currently streams it's output to disk on a per class basis, overwriting the previously generated file as new results come in.

It looks as if stryker requires a single file for all mutants - pitest would need to track how many mutants there are for each file (so classes, inner classes, lambdas etc) and only append to the json when results of them all have been retrieved. (it possible this has already been implemented).

Contributor guide