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

feat(diff): add new "diff" feature to mutant view #1515

Merged
merged 66 commits into from
Nov 19, 2021
Merged

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Nov 11, 2021

old new
image image

This adds the new "diff" feature to the mutant view. It also updated the test view to be in line with this way of working. The big changes:

  1. New "diff" view when selecting a mutant. Still shown inline, but now with a clear "git diff" like feature, including +/- and background-color
    image
  2. Since background color is used in the diff, we could no longer use that to mark mutants with a background color, instead using underline,
    image
  3. To not interrupt the new diff view, we decided to move the markers of mutants to the end of the line. We also decided to change the look to be a "dot".
    image
  4. Remove this underline when the mutant state is filtered out to form a calmer whole.
    image
  5. Since we can only show 1 diff at a time, we no longer support the "expand all" feature. Instead, we've introduced "next" and "previous" buttons at the top. This makes it easy to find the next surviving mutant, which closes Feature request: Survived mutant stepper #406.
  6. Quality of life: it is also possible to click directly on the code when a mutant is underlined there. Clicking multiple times will allow you to "browse" through the mutants active at the cursor.

In action:

inline-diff-demo-10

Closes #1419

@nicojs
Copy link
Member Author

nicojs commented Nov 18, 2021

Green 💚🍏

@nicojs
Copy link
Member Author

nicojs commented Nov 19, 2021

@maks-rafalko you might also be interested in this

@hugo-vrijswijk hugo-vrijswijk merged commit c5f0657 into master Nov 19, 2021
@hugo-vrijswijk hugo-vrijswijk deleted the feat/new-diff branch November 19, 2021 11:06
@maks-rafalko
Copy link

This is very cool. I'm going to continue working on integration in infection/infection#1149, already prioritized for Infection.

Thank you for working on this!

maks-rafalko added a commit to maks-rafalko/stryker-dashboard that referenced this pull request Dec 27, 2021
nicojs added a commit to stryker-mutator/stryker-dashboard that referenced this pull request Dec 31, 2021
Reasons:

* https://github.com/stryker-mutator/mutation-testing-elements/releases/tag/v1.7.7. There was a significant performance improvement. Current version is barely usable for Infection report, see https://dashboard.stryker-mutator.io/reports/github.com/infection/infection/master
* inline diff feature stryker-mutator/mutation-testing-elements#1515

Co-authored-by: Nico Jansen <jansennico@gmail.com>
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 "diff" view Feature request: Survived mutant stepper
4 participants