pax_global_header00006660000000000000000000000064132404117330014510gustar00rootroot0000000000000052 comment=51c725ca71013641a5f095b84e52f2b4addcf22a gcovr-3.4/000077500000000000000000000000001324041173300124765ustar00rootroot00000000000000gcovr-3.4/.gitignore000066400000000000000000000004571324041173300144740ustar00rootroot00000000000000*.py[cod] # C extensions *.so # Packages *.egg *.egg-info dist build eggs parts bin var sdist develop-eggs .installed.cfg lib lib64 # Installer logs pip-log.txt # Unit test / coverage reports .coverage .tox nosetests.xml # Translations *.mo # Mr Developer .mr.developer.cfg .project .pydevproject gcovr-3.4/.travis.yml000066400000000000000000000030101324041173300146010ustar00rootroot00000000000000language: python addons: apt: sources: - ubuntu-toolchain-r-test - llvm-toolchain-precise-3.6 packages: - gcc-5 - g++-5 matrix: include: - python: '2.7' env: CXX=g++-5 CC=gcc-5 GCOV=gcov-5 - python: pypy env: CXX=g++-5 CC=gcc-5 GCOV=gcov-5 - python: '3.4' env: CXX=g++-5 CC=gcc-5 GCOV=gcov-5 - python: '3.5' env: CXX=g++-5 CC=gcc-5 GCOV=gcov-5 - python: pypy3.5-5.8.0 env: CXX=g++-5 CC=gcc-5 GCOV=gcov-5 install: - printenv - $CXX --version - pip install ply - pip install ordereddict - pip install pyutilib - pip install flake8 - python setup.py develop script: - flake8 --ignore=E501 scripts/gcovr . - nosetests -v deploy: # disable testpypi deployment until #197 is fixed # - provider: pypi # - server: https://test.pypi.org/legacy/ # - user: whart111 # - password: # - secure: "TpOWxwD/izvCyz585nvwIq4plfbgi8BKqUW5Xm8uJRWEZ6g1/1K2Om7jxY2sP2XunzrlV85Nnl0juFKzVGfQEXo5yFGpUqx1r74cfFMd3mMATh5VndZuyrR8ZWB70mt/AGEFCPCFt82UqW2gbbZcO8T1i++5vl9hhTUlcaLo9vM=" # - distributions: sdist --format=gztar bdist_wheel # - on: # - tags: false # - branch: master # - python: '2.7' - provider: pypi user: whart111 password: secure: "TpOWxwD/izvCyz585nvwIq4plfbgi8BKqUW5Xm8uJRWEZ6g1/1K2Om7jxY2sP2XunzrlV85Nnl0juFKzVGfQEXo5yFGpUqx1r74cfFMd3mMATh5VndZuyrR8ZWB70mt/AGEFCPCFt82UqW2gbbZcO8T1i++5vl9hhTUlcaLo9vM=" distributions: sdist --format=gztar bdist_wheel on: tags: true branch: master python: '2.7' gcovr-3.4/AUTHORS.txt000066400000000000000000000013401324041173300143620ustar00rootroot00000000000000Gcovr is maintained by: William Hart, John Siirola, and Lukas Atkinson. The following developers contributed to gcovr (ordered alphabetically): Andrew Stone, Arvin Schnell, Attie Grande, Bernhard Breinbauer, Carlos Jenkins, goriy, ja11sop, Jessica Levine, John Siirola, Jörg Kreuzberger, Kai Blaschke, Kevin Cai, libPhipp, Lukas Atkinson, Luke Woydziak, Matsumoto Taichi, Matthias Schmieder, Matthieu Darbois, Michał Pszona, Mikael Salson, Mikk Leini, Nikolaj Schumacher, Piotr Dziwinski, Reto Schneider, Robert Rosengren, Steven Myint, Sylvestre Ledru, trapzero, William Hart, and possibly others. gcovr-3.4/CHANGELOG.txt000066400000000000000000000161261324041173300145340ustar00rootroot00000000000000= `gcovr` Release History and Change Log = === 3.4 ''(12 February 2018)'' === - Added --html-encoding command line option (#139). - Added --fail-under-line and --fail-under-branch options, which will error under a given minimum coverage. (#173, #116) - Better pathname resolution heuristics for --use-gcov-file. (#146) - The --root option defaults to current directory '.'. - Improved reports for "(", ")", ";" lines. - HTML reports show full timestamp, not just date. (#165) - HTML reports treat 0/0 coverage as NaN, not 100% or 0%. (#105, #149, #196) - Add support for coverage-04.dtd Cobertura XML format (#164, #186) - Only Python 2.6+ is supported, with 2.7+ or 3.4+ recommended. (#195) - Added CI testing for Windows using Appveyor. (#189, #200) - Reports use forward slashes in paths, even on Windows. (#200) - Fix to support filtering with absolute paths. - Fix HTML generation with Python 3. (#168, #182, #163) - Fix --html-details under Windows. (#157) - Fix filters under Windows. (#158) - Fix verbose output when using existing gcov files (#143, #144) === 3.3 ''(6 August 2016)'' === - Added CI testing using TravisCI - Added more tests for out of source builds and other nested builds - Avoid common file prefixes in HTML output (#103) - Added the --execlude-directories argument to exclude directories from the search for symlinks (#87) - Added branches taken/not taken to HTML (#75) - Use --object-directory to scan for gcov data files (#72) - Improved logic for nested makefiles (#135) - Fixed unexpected semantics with --root argument (#108) - More careful checks for covered lines (#109) === 3.2 ''(5 July 2014)'' === - Adding a test for out of source builds - Using the starting directory when processing gcov filenames. (#42) - Making relative paths the default in html output. - Simplify html bar with coverage is zero. - Add option for using existing gcov files (#35) - Fixing --root argument processing (#27) - Adding logic to cover branches that are ignored (#28) === 3.1 ''(6 December 2013)'' === - Change to make the -r/--root options define the root directory for source files. - Fix to apply the -p option when the --html option is used. - Adding new option, '--exclude-unreachable-branches' that will exclude branches in certain lines from coverage report. - Simplifying and standardizing the processing of linked files. - Adding tests for deeply nested code, and symbolic links. - Add support for multiple —filter options in same manner as —exclude option. === 3.0 ''(10 August 2013)'' === - Adding the '--gcov-executable' option to specify the name/location of the gcov executable. The command line option overrides the environment variable, which overrides the default 'gcov'. - Adding an empty "" block to in the XML output: this makes out XML complient with the Cobertura DTD. (#3951) - Allow the GCOV environment variable to override the default 'gcov' executable. The default is to search the PATH for 'gcov' if the GCOV environment variable is not set. (#3950) - Adding support for LCOV-style flags for excluding certain lines from coverage analysis. (#3942) - Setup additional logic to test with Python 2.5. - Added the --html and --html-details options to generate HTML. - Sort output for XML to facilitate baseline tests. - Added error when the --object-directory option specifies a bad directory. - Added more flexible XML testing, which can ignore XML elements that frequently change (e.g. timestamps). - Added the '—xml-pretty' option, which is used to generate pretty XML output for the user manual. - Many documentation updates === 2.4 ''(13 April 2012)'' === - New approach to walking the directory tree that is more robust to symbolic links (#3908) - Normalize all reported path names - Normalize using the full absolute path (#3921) - Attempt to resolve files refeenced through symlinks to a common project-relative path - Process `gcno` files when there is no corresponding `gcda` file to provide coverage information for unexecuted modules (#3887) - Windows compatibility fixes - Fix for how we parse `source:` file names (#3913) - Better handling od EOL indicators (#3920) - Fix so that gcovr cleans up all `.gcov` files, even those filtered by command line arguments - Added compatibility with GCC 4.8 (#3918) - Added a check to warn users who specify an empty `--root` option (see #3917) - Force `gcov` to run with en_US localization, so the gcovr parser runs correctly on systems with non-English locales (#3898, #3902). - Segregate warning/error information onto the stderr stream (#3924) - Miscellaneous (Python 3.x) portability fixes - Added the master svn revision number as part of the verson identifier === 2.3.1 ''(6 January 2012)'' === - Adding support for Python 3.x === 2.3 ''(11 December 2011)'' === - Adding the `--gcov-filter` and `--gcov-exclude` options. === 2.2 ''(10 December 2011)'' === - Added a test driver for gcovr. - Improved estimation of the `` element when using gcovr with filters. - Added revision and date keywords to gcovr so it is easier to identify what version of the script users are using (especially when they are running a snapshot from trunk). - Addressed special case mentioned in [comment:ticket:3884:1]: do not truncate the reported file name if the filter does not start matching at the beginning of the string. - Overhaul of the `--root` / `--filter` logic. This should resolve the issue raised in #3884, along with the more general filter issue raised in [comment:ticket:3884:1] - Overhaul of gcovr's logic for determining gcc/g++'s original working directory. This resolves issues introduced in the original implementation of `--object-directory` (#3872, #3883). - Bugfix: gcovr was only including a `` element in the XML report if the user specified `-r` (#3869) - Adding timestamp and version attributes to the gcovr XML report (see #3877). It looks like the standard Cobertura output reports number of seconds since the epoch for the timestamp and a doted decimal version string. Now, gcovr reports seconds since the epoch and "`gcovr `"+`__version__` (e.g. "gcovr 2.2") to differentiate it from a pure Cobertura report. === 2.1 ''(26 November 2010)'' === - Added the `--object-directory` option, which allows for a flexible specification of the directory that contains the objects generated by gcov. - Adding fix to compare the absolute path of a filename to an exclusion pattern. - Adding error checking when no coverage results are found. The line and branch counts can be zero. - Adding logic to process the `-o`/`--output` option (#3870). - Adding patch to scan for lines that look like: {{{ creating `foo' }}} as well as {{{ creating 'foo' }}} - Changing the semantics for EOL to be portable for MS Windows. - Add attributes to xml format so that it could be used by hudson/bamboo with cobertura plug-in. === 2.0 ''(22 August 2010)'' === - Initial release as a separate package. Earlier versions of gcovr were managed within the 'fast' Python package. gcovr-3.4/CONTRIBUTING.rst000066400000000000000000000062021324041173300151370ustar00rootroot00000000000000Contributing ============ Reporting bugs -------------- When reporting a bug, first `search our issues `_ to avoid duplicates. In your bug report, please describe what you expected gcovr to do, and what it actually did. Also try to include the following details: - how you invoked gcovr, i.e. the exact flags and from which directory - your project layout - your gcovr version - your compiler version - your operating system - and any other relevant details. Ideally, you can provide a short script and the smallest possible source file to reproduce the problem. .. _search all issues: https://github.com/gcovr/gcovr/issues?q=is%3Aissue Helping out ----------- If you would like to help out, please take a look at our `open issues `_ and `pull requests`_. Maybe you know the answer to some problem, or can contribute your perspective as a gcovr user. In particular, testing proposed changes in your real-world project is very valuable. The issues labeled “\ `help wanted