Skip to content

feat(elements): render ANSI escape codes in the mutant drawer#4264

Open
hugo-vrijswijk wants to merge 3 commits into
masterfrom
ansi-description
Open

feat(elements): render ANSI escape codes in the mutant drawer#4264
hugo-vrijswijk wants to merge 3 commits into
masterfrom
ansi-description

Conversation

@hugo-vrijswijk

@hugo-vrijswijk hugo-vrijswijk commented Jul 17, 2026

Copy link
Copy Markdown
Member

Closes #2925

image

Adds a new <mte-ansi-text> component that renders a string containing ANSI escape codes as styled HTML, using the anser library. 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 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).

@bundlemon

bundlemon Bot commented Jul 17, 2026

Copy link
Copy Markdown

BundleMon (elements)

Files updated (3)
Status Path Size Limits
index.js
252.22KB (+9.62KB +3.97%) -
mutation-test-elements.js
232.47KB (+8.2KB +3.66%) -
index.cjs
214.29KB (+7.52KB +3.64%) -

Total files change +25.35KB +3.76%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@mergify

mergify Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

hugo-vrijswijk and others added 3 commits July 20, 2026 09:21
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).
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 description/statusReason rendering

1 participant