Skip to content

Improve description/statusReason rendering #2925

@hugo-vrijswijk

Description

@hugo-vrijswijk

When the description/statusReason is filled, the report shows it when opening the mutant. Oftentimes this is filled with information from the test framework, such as an exception, diff or otherwise. A lot of frameworks fill this information with ansi-codes for colored text. For Stryker4s specifically, this will have a list of exceptions, delimited by newlines.

This means that a nicely reported error like this:

afbeelding

Ends up looking like this in the report:

afbeelding

Which is a lot less readable.

I think we can do two things to fix this:

  • Render newlines (and tabs?) properly
  • Render ANSI codes. Something like ansi_up could work, but it should be fairly easy to make something ourselves

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions