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(progress): improve progressbar ETC estimate #3469

Merged
merged 3 commits into from
Mar 30, 2022

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Mar 28, 2022

Improve the ETC estimate of the "progress" reporter by giving each mutant an accurate weight according to its expected impact on the overall performance.

The expected time it takes to run all tests for the mutant is calculated and used as the weight for that mutant. Then when the mutant is completed, the ticks corresponding to that calculated weight are marked as completed.

See example:

realistic-progress-bar

Closes #3463

BREAKING CHANGE: Reporter API change: onAllMutantsMatchedWithTests has been replaced by onMutationTestingPlanReady
BREAKING CHANGE: Reporter API change: onAllSourceFilesRead has been removed, please use onMutationTestReportReady to retrieve the source files.
BREAKING CHANGE: Reporter API change: onSourceFileRead has been removed, please use onMutationTestReportReady to retrieve the source files.

Improve the ETC estimate of the `"progress"` reporter by giving each mutant a weight according to its expected impact on the overall performance.

BREAKING CHANGE: Reporter API change: `onAllMutantsMatchedWithTests` has been renamed to `onMutationTestingPlanReady`
BREAKING CHANGE: Reporter API change: `onAllSourceFilesRead` has been removed, please use `onMutationTestReportReady` to retrieve the source files.
BREAKING CHANGE: Reporter API change: `onSourceFileRead` has been removed, please use `onMutationTestReportReady` to retrieve the source files.
@nicojs nicojs enabled auto-merge (squash) March 30, 2022 09:13
@nicojs nicojs merged commit ec63d93 into master Mar 30, 2022
@nicojs nicojs deleted the feat/realistic-progress-bar branch March 30, 2022 09:48
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.

Improve the progress reporter
1 participant