feat(elements): render ANSI escape codes in the mutant drawer#4264
Open
hugo-vrijswijk wants to merge 3 commits into
Open
feat(elements): render ANSI escape codes in the mutant drawer#4264hugo-vrijswijk wants to merge 3 commits into
hugo-vrijswijk wants to merge 3 commits into
Conversation
hugo-vrijswijk
force-pushed
the
ansi-description
branch
from
July 17, 2026 16:51
c732dd1 to
ad9d8cd
Compare
BundleMon (elements)Files updated (3)
Total files change +25.35KB +3.76% Final result: ✅ View report in BundleMon website ➡️ |
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Closes #2925 Adds a new `<mte-ansi-text>` component that renders a string containing ANSI escape codes as styled HTML. used for `statusReason` and `description`. Updated the `scala-example` with a new report that includes ANSI escape codes in some mutants. Intention is for this to be used for test output logging (like in the example). If the text contains ANSI escape codes, it will be rendered in monospace font. Otherwise, it will be rendered in the default font (same as before).
hugo-vrijswijk
force-pushed
the
ansi-description
branch
from
July 20, 2026 07:22
eed07cb to
337510f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2925
Adds a new
<mte-ansi-text>component that renders a string containing ANSI escape codes as styled HTML, using the anser library. used forstatusReasonanddescription.Updated the
scala-examplewith a new report that includes ANSI escape codes in some mutants.Intention is for this to be used for test output logging or assertions that use color (like in the example). Stryker4s now manually strips ANSI escape codes from status reasons.
If the text contains ANSI escape codes, it will be rendered in monospace font. Otherwise, it will be rendered in the default font (same as before).