Skip to content

Revamp HTML coverage report#1415

Merged
gustavo-grieco merged 10 commits intomasterfrom
filter-coverage
Sep 23, 2025
Merged

Revamp HTML coverage report#1415
gustavo-grieco merged 10 commits intomasterfrom
filter-coverage

Conversation

@elopez
Copy link
Copy Markdown
Member

@elopez elopez commented Aug 9, 2025

Based on Medusa's new HTML coverage report format

@elopez elopez force-pushed the filter-coverage branch 2 times, most recently from b772e19 to f8c3bc4 Compare August 9, 2025 20:45
elopez added 9 commits August 10, 2025 20:27
This brings the coverage report improvements developed for Medusa
into Echidna.
Searching will now only open the file tree branches that contain matches.
Also clearing the search box will now properly clear the highlights and
close the file trees.
This option takes a list of globs and removes those files from
coverage reports. Example: `coverageExcludes: ["lib/**/*", "test/**/*"]`

Fixes: #1391
@gustavo-grieco gustavo-grieco marked this pull request as ready for review September 16, 2025 11:19
Copy link
Copy Markdown
Collaborator

@gustavo-grieco gustavo-grieco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this PR using a complex fuzzing campaign and it preserves the text output without changes, so most likely the changes do not break anything on the html output as well.

@gustavo-grieco gustavo-grieco merged commit d41a749 into master Sep 23, 2025
18 checks passed
@gustavo-grieco gustavo-grieco deleted the filter-coverage branch September 23, 2025 18:31
datradito pushed a commit to datradito/echidna-mcp that referenced this pull request Dec 29, 2025
* HTML coverage report improvements

This brings the coverage report improvements developed for Medusa
into Echidna.

* Fix file tree search behavior

Searching will now only open the file tree branches that contain matches.
Also clearing the search box will now properly clear the highlights and
close the file trees.

* Add timestamp to report

* Small report UI tweaks, linting

* Return to original coloring logic

* Fix hlint warnings

* Refactor report generation

* Add coverage report filtering option `coverageExcludes`

This option takes a list of globs and removes those files from
coverage reports. Example: `coverageExcludes: ["lib/**/*", "test/**/*"]`

Fixes: crytic#1391

* Remove unused code
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.

2 participants