5.0
版本发布时间: 2021-06-11 16:29:53
gcovr/gcovr最新发布版本:7.2(2024-02-26 04:22:56)
This release bundles various improvements and new features over the last year.
- install/update: pip install -U gcovr
- full changelog and documentation: https://gcovr.com/en/5.0/changelog.html
Breaking changes:
- Dropped support for Python 2 and Python 3.5. From now on, gcovr will only support Python versions that enjoy upstream support.
Improvements and new features:
- Handles spaces in
gcov
path. (#385) - Early fail when output cannot be created. (#382)
- Add option
--txt
for text output. (#387) - Add option
--csv
for CSV output. (#376) - Add option
--exclude-lines-by-pattern
to filter out source lines by arbitrary regex. (#356) - Add
--json-summary
to generate aJSON Summary
report. (#366) - Add
--coveralls
to generate aCoveralls
compatible JSON report. (#328) - Add support for output directories. If the output ends with a
/
or\
it is used as a directory. (#416) - Compare paths case insensitive if file system of working directory is case insensitive. (#329)
- Add wildcard pattern to json
--add-tracefile
. (#351) - Enable
--filter
and--exclude
forCombining tracefiles
. (#373) - Only output 100.0% in text and HTML output if really 100.0%, else use 99.9%. (#389)
- Support relative source location for shadow builds. (#410)
- Incorrect path for header now can still generate html-details reports (#271)
- Change format version in JSON output from number to string and update it to "0.2". (#418, #463)
- Only remove
--root
path at the start of file paths. (#452) - Fix coverage report for cmake ninja builds with given in-source object-directory. (#453)
- Add issue templates. (#461)
- Add
--exclude-function-lines
to exclude the line of the function definition in the coverage report. (#430) - Changes for HTML output format:
- Redesign HTML generation. Add
--html-self-contained
to control externeal or internal CSS. (#367) - Change legend for threshold in html report. (#371)
- Use HTML title also for report heading. Default value for
--html-title
changed. (#378) - Add
--html-tab-size
to configure tab size in HTML details. (#377) - Add option
--html-css
for user defined styling. (#380) - Create details html filename independent from OS. (#375)
- Add
--html-theme
to change the color theme. (#393) - Add linkable lines in HTML details. (#401)
- Add syntax highlighting in the details HTML report. This can be turned off with
--no-html-details-syntax-highlighting
. (#402, #415)
- Redesign HTML generation. Add
Internal changes:
- Add makefile + dockerfile for simpler testing.
- Add .gitbugtraq to link comments to issue tracker in GUIs. (#429)
- Add GitHub actions to test PRs and master branch. (#404)
- Remove Travis CI. (#419)
- Remove Appveyor CI and upload coverage report from Windows and Ubuntu from the GitHub actions. (#455)
- Add check if commit is mentioned in the CHANGELOG.rst. (#457)
- Move flake8 config to setup.cfg and add black code formatter. (#444)
- Fix filter/exclude relative path issue in Windows. (#320, #479)
- Extend test framework for CI:
- Set make variable TEST_OPTS as environment variable inside docker. (#372)
- Add make variable USE_COVERAGE to extend flags for coverage report in GitHub actions. (#404)
- Extend tests to use an unified diff in the assert. Add test options
--generate_reference
,--update_reference
and--skip_clean
. (#379) - Support multiple output patterns in integration tests. (#383)
- New option
--archive_differences
to save the different files as ZIP. Use this ZIP as artifact in AppVeyor. (#392) - Add support for gcc-8 to test suite and docker tests. (#423)
- Run as limited user inside docker container and add test with read only directory. (#445)