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
Implement the Stryker HTML report 2 #1625
Merged
Merged
Conversation
This file contains 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
build is fixed |
maks-rafalko
added a commit
that referenced
this pull request
Dec 27, 2021
Related to #1625 Now, Stryker logger allows to send badge information or the full mutation test elements report to display HTML report on Stryker Dashboard. Example: https://dashboard.stryker-mutator.io/reports/github.com/infection/infection/master#mutant Note, at the time of creating this PR, Stryker Dashboard has an old version of mutation-testing-elements lib which is too slow. Made a PR to update it: stryker-mutator/stryker-dashboard#211. The locally generated `html` report (see `logger.html` in `infection.json` already generates report with the latest lib) This is a BC break. Before: `infection.json` ```json { "logs": { "badge": { "branch": "master" } } } ``` After: `infection.json` - for badge information only ```json { "logs": { "stryker": { "badge": "master" } } } ``` or for badge *and* HTML report ```json { "logs": { "badge": { "report": "master" } } } ```
2 tasks
maks-rafalko
force-pushed
the
feature/html-report-new
branch
from
January 7, 2022 23:29
57f6716
to
e46b4b2
Compare
Closed
@sidz merging as I need to move forward. Feel free to comment if still needed (you've added yourself as a reviewer) |
maks-rafalko
added a commit
that referenced
this pull request
Jan 8, 2022
Related to #1625 Now, Stryker logger allows to send badge information or the full mutation test elements report to display HTML report on Stryker Dashboard. Example: https://dashboard.stryker-mutator.io/reports/github.com/infection/infection/master#mutant Note, at the time of creating this PR, Stryker Dashboard has an old version of mutation-testing-elements lib which is too slow. Made a PR to update it: stryker-mutator/stryker-dashboard#211. The locally generated `html` report (see `logger.html` in `infection.json` already generates report with the latest lib) This is a BC break. Before: `infection.json` ```json { "logs": { "badge": { "branch": "master" } } } ``` After: `infection.json` - for badge information only ```json { "logs": { "stryker": { "badge": "master" } } } ``` or for badge *and* HTML report ```json { "logs": { "badge": { "report": "master" } } } ```
maks-rafalko
added a commit
that referenced
this pull request
Jan 8, 2022
* Replace `badge` logger with more advanced `stryker` logger Related to #1625 Now, Stryker logger allows to send badge information or the full mutation test elements report to display HTML report on Stryker Dashboard. Example: https://dashboard.stryker-mutator.io/reports/github.com/infection/infection/master#mutant Note, at the time of creating this PR, Stryker Dashboard has an old version of mutation-testing-elements lib which is too slow. Made a PR to update it: stryker-mutator/stryker-dashboard#211. The locally generated `html` report (see `logger.html` in `infection.json` already generates report with the latest lib) This is a BC break. Before: `infection.json` ```json { "logs": { "badge": { "branch": "master" } } } ``` After: `infection.json` - for badge information only ```json { "logs": { "stryker": { "badge": "master" } } } ``` or for badge *and* HTML report ```json { "logs": { "badge": { "report": "master" } } } ``` * Add more tests, remove todo
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.
This PR:
--logger-html
cli optionHow it works:
infection --logger-html='infection.html'
or by configuring it in
infection.json
main page:
I intentially made it as one html file with JSON report bundled, to make it possible to share HTML reports as 1 file, like this (GitHub does not allow to upload html files, so here is a zip, feel free to see HTML report for the whole Infection execution).
infection.zip
There are many things to do yet, I will cover them in separate PRs: