Repository navigation
feat: add json, csv, html and markdown reports - #13
Merged
Merged
Conversation
Reports are grouped by class where it makes sense, honour the show* settings in markdown, and are written as UTF-8 with clear errors for a missing directory or an unwritable file. A new format is one Report class plus one ReportType entry.
A class name found in more than one file is keyed <class>@<file> once per file.
…ly, survive NaN Markdown and html share the json grouping, one section per class and file. Markdown escapes angle brackets, backticks and line breaks. Reports are moved into place from a temporary file. NaN and infinity render as N/A, or null in json.
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.
Summary
Reportimplementations selected byReportType(json, csv, html, markdown);ReportWriterhandles the directory check, UTF-8 and IO errors.{class: {file, methods: {method: {...}}}}with optionaldeltas; CSV has consistent header and rows incl. weight deltas; HTML uses pinned Bootstrap 5.3.3 with SRI, escaped text, score highlighting and delta badges; Markdown honours the show* settings.showOnlyMethodsExceedingThresholdapplies to html and markdown only; json and csv contain everything. See docs/Reports.md.application.reportadded to the PIT targets.Test plan
./mvnw -B verifygreen