Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(reporter api): unify reporter api with mutation-testing-elements #2798

Merged
merged 19 commits into from
Mar 11, 2021

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Mar 11, 2021

This change brings the Reporter API more in line with the schema of mutation-testing-elements. It also adds the metrics result to the onMutationTestReportReady for convenience.

Old New
MutantStatus.TimedOut MutantStatus.Timeout
mutant.coveredByTests (boolean) mutant.coveredBy (array, an empty array means not covered)
mutant.testFilter (array) mutant.coveredBy
mutant.testFilter (undefined) mutant.static (true/false)
mutant.runAllTests (boolean) mutant.static (true/false)
mutant.errorMessage, mutant.ignoreReason mutant.statusReason
mutant.nrOfTestsRan mutant.testsCompleted
mutant.id (number) mutant.id (string)
MatchedMutant MutantTestCoverage (name change)

This has also a small impact on the TestRunner API, because the Mutant is used there as well.

BREAKING CHANGE: Changes to Reporter and TestRunner plugin API of Stryker

Fixes #2766

@nicojs nicojs enabled auto-merge (squash) March 11, 2021 20:11
@nicojs nicojs merged commit d173b27 into epic/v5 Mar 11, 2021
@nicojs nicojs deleted the feat/allign-reporter-api branch March 11, 2021 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant