stryker-net
stryker-net copied to clipboard
Ability to run single mutation from html report
Is your feature request related to a problem? Please describe. Imagine project with lots of mutations that stryker will spend couple of minutes slauthering just to find out, that some mutants survived ...
Describe the solution you'd like ... now i would like to:
- open html report
- find surviving mutant
- modify my code
- run stryker again, but only as if there was just single selected mutant from 2)
- this could be done by generating code in
mte-drawer-mutant
element that i just copy to terminal and run
- this could be done by generating code in
- after all surviving mutans are checked run stryker for whole project again to verify my changes
Describe alternatives you've considered CLI, that will load previous report, filter surviving mutants and run tests only against those ...
Additional context In report all other mutants should get 'ignored' status and source code should be updated.
You could take a look at https://stryker-mutator.io/docs/stryker-net/configuration/#mutate-glob
It supports mutating just a single line in a single file like this dotnet stryker -m "MyFolder/MyService.cs{10..11}"
CLI, that will load previous report, filter surviving mutants and run tests only against those
This sounds interesting. @rouke-broersma would this be a nice feature for hacktoberfest?
@richardwerkman after reading thru mutate-grob page i think that this could be used to run only survivintg mutants:
- simple solution: generate
dotnet stryker -m "MyFolder/MyService.cs{10..11}" [+params form original run]
inmte-drawer-mutant
element so i can copy it to terminal and run - result would be new report - complex solution: stryker is cappable to modify html report during execution - so in theory it could react to events from browser and trigger new run & update original report ...
sure i could parse json report externally and generate all globs but i dont like it ... (poking around in generated json - specially when its structure may change in next version)