Skip to content

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

Draft
nicojs wants to merge 1 commit intomasterfrom
refactor/real-time-model-updates
Draft

refactor(real-time): move update logic to metrics package#3068
nicojs wants to merge 1 commit intomasterfrom
refactor/real-time-model-updates

Conversation

@nicojs
Copy link
Copy Markdown
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
Copy Markdown
Member Author

nicojs commented Mar 16, 2024

Yeah... still needs some more work

@hugo-vrijswijk hugo-vrijswijk marked this pull request as draft March 13, 2026 15: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.

1 participant