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

Single html report #916

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open

Conversation

Spacetown
Copy link
Member

@Spacetown Spacetown commented Apr 15, 2024

The single page report can be selected with option --html-single-page. By default the report uses Javascript to provide the features of the nested report. If Javascript is deactivated the whole data is shown as a full list.
If --html-single-page static is used a report without javascript is created.

Closes #613

Do not add to global dict during iterations over files or directories
because they are still present for following iterations.
In the page for a source file the filename wasn't relative tor the
directory of the report, it always contained the report directory
itself. Only in the directory listing the files where relative to the
report directory.
- Distinguish between --html-details and --html-nested.
- Update documentation of options.
- By default create the report self contained.
@Spacetown Spacetown marked this pull request as ready for review April 15, 2024 21:10
@Spacetown Spacetown requested a review from latk April 15, 2024 21:10
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 95.14563% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 94.75%. Comparing base (7d514c5) to head (0762781).

Files Patch % Lines
gcovr/formats/html/write.py 94.04% 4 Missing and 6 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #916      +/-   ##
==========================================
+ Coverage   94.70%   94.75%   +0.04%     
==========================================
  Files          50       50              
  Lines        3912     3968      +56     
  Branches      824      840      +16     
==========================================
+ Hits         3705     3760      +55     
  Misses        129      129              
- Partials       78       79       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Spacetown Spacetown mentioned this pull request Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single file HTML output.
1 participant