Generate code coverage reports with gcc/gcov
OTHER License
Bot releases are hidden (Show)
Published by Spacetown 8 months ago
Fix tagging issue of 7.1, no functional change.
Published by Spacetown 8 months ago
New features and notable changes:
--decisions
is used. (#892)Bug fixes and small improvements:
Documentation:
Internal changes:
Breaking changes:
New features and notable changes:
--html-template-dir
option to use custom Jinja2 templates (#758)--html-css
contains the string /* Comment.Preproc */
no pygments
CSS is added anymore. (#786)Devcontainer
and GitHub Codespaces
. (#771)--fail-under-decision
and option --fail-under-function
which will error under a given minimum coverage. (#773)--cobertura-add-tracefile
option. (#805)--jacoco
to generate JaCoCo XML format. (#823))str.casefold <https://docs.python.org/3.11/library/stdtypes.html?highlight=str%20casefold#str.casefold>
_) (file_10.c
comes after file_0.c
).--sort-branches
to sort by branches instead of lines, this is the default if option --txt-branches
is used.--sort-reverse
to reverse the sort order.search_paths
. (#834)--gcov-ignore-parse-errors
is used. (#852)-b
, option --txt-branches
and option --branches
are deprecated, use option --txt-metric
instead.--sort-uncovered
and option --sort-percentage
are deprecated, use option --sort
instead.master
to main
. (#829, #873)Bug fixes and small improvements:
-j
is used. (#752)gcov
output. (#776)gcov
(output write error introduced gcc-12). (#781)--gcov-ignore-errors
to be able to ignore specific gcov errors. (#787)gcov-ignore-parse-errors
). (#816)TypeError
during decision analysis. (#784)gcov
. (#820)--merge-mode-functions
when merging coverage data. (#844)Documentation:
How to create a standalone application
docs (#792)Internal changes:
--txt-summary
in addition to option --print-summary
--json-add-tracefile
in addition to option --add-tracefile
--gcov-delete
in addition to option --delete
--gcov-keep
in addition to option --keep
--gcov-object-directory
in addition to option --object-directory
--gcov-exclude-directories
in addition to option --exclude-directories
--gcov-use-existing-files
in addition to option --use-gcov-files
gcc
or clang
. (#782)build
instead of calling setup.py
directly. (#819)clang-15
in our test suite and fix test with write protection under Mac OS. (#853)Breaking changes:
function-rate
, functions-covered
and functions-valid
from cobertura report. (#671)--exclude-noncode-lines
to exclude noncode lines. Noncode lines are not excluded by default anymore. (#704, #705)--gcov-ignore-parse-errors
to accept list of errors to ignore. (#701)gcov
errors:
gcov
. (#653)gcov
errors. Old behavior was to print a warning and continue. (#718)--cobertura
is changed from coverage.xml to cobertura.xml (#721)Support of Keil uVision format
. (#727)New features and notable changes:
--html-nested
for reports that summarize subdirectories with aggregated statistics per directory. (#687)NAN %
which is used in GCOV 7.5.0 instead of an invalid value. (#651)--json-base
to define a base bath used in JSON reports. (#656)--calls
to report call coverage: function calls invoked/total (#666)--keep
when calling gcov internaly. (#703)--timestamp
. (#729)Bug fixes and small improvements:
--html-tab-size
feature. (#650)--version
before parsing the configuration file. (#696)Exclusion markers
. (#713)realpath
for DirectoryPrefixFilter
to support symlinks in root directory. (#712)-j
is used and there are errors from gcov
execution. (#721)realpath
for DirectoryPrefixFilter
to support symlinks in root directory. (#712)Documentation:
Internal changes:
--html-theme
using CSS classes. (#650)cmake
tests. (#676)gcc
version for running tests. (#686)--update_reference
option. (#698)clang-14
in our test suite and improve startup performance of docker image. (#731)nox
command itself. (#734)nox
command itself. (#734)Published by Spacetown about 2 years ago
This release bundles bugfixes and small improvements.
New features and notable changes:
Bug fixes and small improvements:
≥
sign instead of >=
in HTML legend. (#603)--add-tracefile
will now correctly merge branch coverage. (#600).gcov
parsing to support files generated by third party tools.Internal changes:
--reuse-existing-virtualenvs
and --no-install
to call inside docker. (#616)Published by latk over 2 years ago
This release bundles bugfixes and improvements from about 9 months of work.
pip install -U gcovr
Highlights include consistent support for symlinks including on Windows, and richer reports with function coverage and decision coverage.
Breaking changes:
xml
configuration key to cobertura
(#552)New features and notable changes:
--fail-under-line
or --fail-under-branch
fails (#502)--decisions
option (reasonably formatted C/C++ source files only, HTML and JSON output) (#350)--timestamp
option (#546)--no-markers
option (#361)--exclude-pattern-prefix
option (#561)--cobertura
as a less ambiguous alias for --xml
. (#552)Bug fixes and small improvements:
jinja2 >= 3.1
(#576)Documentation:
gcov
(#528)Internal changes:
.gcov
file format, should be more robust. (#512)-fprofile-abs-path
compiler option (#521)Published by Spacetown over 3 years ago
This release bundles various improvements and new features over the last year.
Breaking changes:
Improvements and new features:
gcov
path. (#385)--txt
for text output. (#387)--csv
for CSV output. (#376)--exclude-lines-by-pattern
to filter out source lines by arbitrary regex. (#356)--json-summary
to generate a JSON Summary
report. (#366)--coveralls
to generate a Coveralls
compatible JSON report. (#328)/
or \
it is used as a directory. (#416)--add-tracefile
. (#351)--filter
and --exclude
for Combining tracefiles
. (#373)--root
path at the start of file paths. (#452)--exclude-function-lines
to exclude the line of the function definition in the coverage report. (#430)--html-self-contained
to control externeal or internal CSS. (#367)--html-title
changed. (#378)--html-tab-size
to configure tab size in HTML details. (#377)--html-css
for user defined styling. (#380)--html-theme
to change the color theme. (#393)--no-html-details-syntax-highlighting
. (#402, #415)Internal changes:
--generate_reference
, --update_reference
and --skip_clean
. (#379)--archive_differences
to save the different files as ZIP. Use this ZIP as artifact in AppVeyor. (#392)Published by latk almost 5 years ago
This release bundles various improvements and new features over the last year.
pip install -U gcovr
Breaking changes:
--xml
or --html
now take an optional output file name. This potentially changes the interpretation of search paths. In gcovr --xml foo
, previous gcovr versions would search the foo
directory for coverage data. Now, gcovr will try to write the Cobertura report to the foo
file. To keep the old meaning, separate positional arguments like gcovr --xml -- foo
.Improvements and new features:
gcovr --add-tracefile
. (#10, #326)--object-directory
heuristics. (#18, #273, #280)catch
clause is now shown as uncovered. (#283)--exclude-throw-branches
option--root ..
style invocation,gcovr --html -o cov.html
and gcovr --html cov.html
are equivalent. (#291)Known issues:
--keep
option only works when using existing gcov files with -g
/--use-gcov-files
. (#285, #286)Documentation:
Internal changes:
Warning: Python 2.7 will reach its end of life on Jan 1, 2020. With its first release on or after that date, gcovr will drop support for that version. Subsequently, gcovr will only support Python versions that enjoy upstream support.
Please note that gcovr does not use a strict SemVer version number. When support for a Python version is dropped, gcovr will not necessarily increment its major version.
Published by latk over 6 years ago
This release represents a huge amount of refactoring and under-the-hood improvements. Most users should not experience any regressions, although there are lots of smaller incompatible changes.
Highlights:
⭐ Gcovr now runs perfectly on Python 3 (Python 3.5+ recommended).
⭐ Filters are no longer restricted on Windows. The filter syntax was changed to use forward slashes everywhere, so a filter like -f 'src/.*\.cpp'
will now behave identically on all platforms.
You can pip install gcovr
the most recent release from PyPI.
Breaking changes:
Improvements and new features:
Internal changes:
Published by latk over 6 years ago
Published by whart222 about 8 years ago