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

refactor(real-time): move update logic to metrics package #3068

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Mar 15, 2024

Make mutation-testing-metrics responsible for the real-time calculations in the report. This has a couple of advantages:

  • Easier to reason about: the metrics are always up-to-date.
  • Easier to maintain: no ad-hoc calculations are needed anymore
  • Can be reused from StrykerJS itself, for example, in the console reporter

This change was already discussed here: #2453 (comment).

Note: this refactor is needed to enable fine-grained reactivity.

Make `mutation-testing-metrics` responsible for the real-time calculations in the report. This has a couple of advantages:

- Easier to reason about: the metrics are always up-to-date.
- Easier to maintain: no ad-hoc calculations are needed anymore
- Can be reused from StrykerJS itself, for example, in the console reporter

Note: this refactor is needed to enable fine-grained reactivity.
@nicojs
Copy link
Member Author

nicojs commented Mar 16, 2024

Yeah... still needs some more work

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