Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: don't measure all third-party packages if source is in third-party location | Manuel Jacob | 2023-03-15 | 1 | -3/+23 |
| | | | | | | | | There is logic to not measure third-party packages inside configured sources. However, when a (i.e. another) configured source was inside a third-party location, this logic was previously disabled completely. This caused a problem if a virtual env is set up inside a configured source directory and a configured source package gets installed inside the virtual env. Previously in this case, coverage was measured for all files in the virtual env for the reason described in the previous paragraph. This commit changes the code to collect all configured source directories inside third-party locations and disable coverage for code in third-party locations only if its not in one of these collected source directories. | ||||
* | fix: generate xml report packages correctly on windows (#1574) | Benjamin Parzella | 2023-03-14 | 1 | -0/+33 |
| | | | | | | | * fix: generate xml report packages correctly on windows * test: check duplicate package names in xml report * fix: shorten long line in test_xml | ||||
* | Fix lcov coverage | Ian Moore | 2023-03-14 | 1 | -1/+1 |
| | |||||
* | fix: recent pypy3.9 now omits lines after jumps | Ned Batchelder | 2023-03-12 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were seeing these failures in the nightly builds: ``` FAILED tests/test_arcs.py::LoopArcTest::test_continue - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (1, 5) # 15 (2, 3) # 23 (3, 1) # 31 - (4, 1) # 41 (5, -1) # 5. Missing arcs differ: minus is expected, plus is actual - (4, 1) # 41 + assert False FAILED tests/test_arcs.py::LoopArcTest::test_break - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (1, 5) # 15 (2, 3) # 23 (3, 5) # 35 - (4, 1) # 41 (5, -1) # 5. Missing arcs differ: minus is expected, plus is actual (1, 5) # 15 - (4, 1) # 41 assert False FAILED tests/test_arcs.py::ExceptionArcTest::test_raise_followed_by_statement - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (2, 3) # 23 (3, 4) # 34 (4, 6) # 46 - (5, 8) # 58 (6, 7) # 67 (7, 8) # 78 (8, -1) # 8. Missing arcs differ: minus is expected, plus is actual - (5, 8) # 58 + assert False FAILED tests/test_coverage.py::SimpleStatementTest::test_raise_followed_by_statement - AssertionError: [1, 2, 4, 5] != [1, 2, 3, 4, 5] assert [1, 2, 4, 5] == [1, 2, 3, 4, 5] At index 2 diff: 4 != 3 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 4, 5] FAILED tests/test_coverage.py::SimpleStatementTest::test_break - AssertionError: [1, 2, 3, 5] != [1, 2, 3, 4, 5] assert [1, 2, 3, 5] == [1, 2, 3, 4, 5] At index 3 diff: 5 != 4 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 3, 5] FAILED tests/test_coverage.py::SimpleStatementTest::test_continue - AssertionError: [1, 2, 3, 5] != [1, 2, 3, 4, 5] assert [1, 2, 3, 5] == [1, 2, 3, 4, 5] At index 3 diff: 5 != 4 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 3, 5] ``` | ||||
* | debug: label the assert messages | Ned Batchelder | 2023-03-12 | 1 | -2/+2 |
| | |||||
* | build: run mypy by default, and fix "unused" errors from updated mypy | Ned Batchelder | 2023-03-07 | 1 | -3/+3 |
| | |||||
* | fix: always use full-version rtfd links #1566 | Ned Batchelder | 2023-02-24 | 1 | -1/+2 |
| | |||||
* | docs: final paperwork for exclude_also #1557 | Ned Batchelder | 2023-02-22 | 1 | -2/+3 |
| | |||||
* | feat: add extend_exclude option | Alpha Chen | 2023-02-22 | 1 | -0/+9 |
| | |||||
* | test: stricter regex to avoid false CodeQL alarms | Ned Batchelder | 2023-02-22 | 2 | -3/+3 |
| | | | | | | | | | Will fix: https://github.com/nedbat/coveragepy/security/code-scanning/3 https://github.com/nedbat/coveragepy/security/code-scanning/4 (though tbh, not sure how to close those as fixed?) | ||||
* | refactor: no placebos, use true Optional | Ned Batchelder | 2023-02-14 | 1 | -0/+1 |
| | | | | | | For objects that truly might not exist, use Optional. Some objects will always exist eventually, and for those we have some null implementation standins to use without making new placebo classes. | ||||
* | fix: Path objects are ok for data_file and config_file. #1552 | Ned Batchelder | 2023-02-12 | 3 | -11/+18 |
| | |||||
* | test: adapt to latest pylint | Ned Batchelder | 2023-02-09 | 2 | -4/+4 |
| | |||||
* | fix: only write "Wrote report" message if report succeeded. | Ned Batchelder | 2023-02-08 | 1 | -6/+7 |
| | | | | | | | For example, see [issue 1554](https://github.com/nedbat/coveragepy/issues/1554) for the previous misleading behavior when the exception being raised wasn't a CoverageException. | ||||
* | feat: simplify purges_files | Ned Batchelder | 2023-02-08 | 2 | -106/+29 |
| | | | | Also, move tests to test_data.py, and finish covering the code. | ||||
* | feat: add purge_files method to CoverageData + unit tests for it (#1547) | Wingware Development | 2023-02-04 | 1 | -0/+106 |
| | | | | | | | | | | | | | | | * Add purge_files method to CoverageData, to allow for selective removal and update of coverage data. * Fix assert syntax so it's not true; this code isn't reached in the test unless it fails and then it would have failed to fail. * Remove trailing whitespace; did not expect this would matter on a blank line. * Add type annotations required by mypy --------- Co-authored-by: Stephan Deibel <sdeibel@wingware.com> | ||||
* | build: some files need to be excused from usual formatting rules | Ned Batchelder | 2023-01-30 | 2 | -2/+2 |
| | |||||
* | style: remove needless trailing commas | Ned Batchelder | 2023-01-26 | 2 | -2/+2 |
| | |||||
* | perf: avoid needless sql operations. #1538 | Ned Batchelder | 2023-01-24 | 1 | -10/+8 |
| | | | | | | | | | | If the set of arcs is empty, skip the SQL operations. We also need to allow setting a file tracer for an unmeasured file, to avoid the Cython problem whose fix caused the performance issue in the first place. TBH, I don't know why we had to prevent file tracers on unmeasured files. Perhaps pytest-cov has changed to avoid the behavior that caused problems. | ||||
* | test: more tests of debug output control | Ned Batchelder | 2023-01-22 | 1 | -3/+12 |
| | |||||
* | feat: the debug output file can be specified in the config file. #1319 | Ned Batchelder | 2023-01-22 | 1 | -13/+53 |
| | |||||
* | mypy: turn on disallow_untyped_decorators | Ned Batchelder | 2023-01-12 | 1 | -1/+1 |
| | |||||
* | mypy: all of coverage/ and tests/ are checked | Ned Batchelder | 2023-01-12 | 6 | -37/+88 |
| | |||||
* | mypy: test_plugins.py | Ned Batchelder | 2023-01-12 | 1 | -26/+40 |
| | |||||
* | mypy: progress on test_plugins.py | Ned Batchelder | 2023-01-12 | 1 | -7/+12 |
| | |||||
* | mypy: install pytest alongside mypy to get its types | Ned Batchelder | 2023-01-10 | 3 | -5/+6 |
| | |||||
* | fix: isolate user code from coverage.py internal code flags. #1524 | Ned Batchelder | 2023-01-09 | 2 | -1/+17 |
| | |||||
* | mypy: test_venv.py | Ned Batchelder | 2023-01-07 | 2 | -14/+20 |
| | |||||
* | mypy: templite.py test_templite.py | Ned Batchelder | 2023-01-07 | 1 | -48/+48 |
| | |||||
* | mypy: test_testing.py test_version.py | Ned Batchelder | 2023-01-07 | 2 | -39/+51 |
| | |||||
* | mypy: test_parser.py test_phystokens.py test_process.py test_report.py ↵ | Ned Batchelder | 2023-01-07 | 7 | -182/+217 |
| | | | | test_results.py test_setup.py | ||||
* | style: use good style for annotated defaults parameters | Ned Batchelder | 2023-01-05 | 12 | -67/+67 |
| | |||||
* | mypy: test_goldtest.py test_json.py test_lcov.py test_mixins.py ↵ | Ned Batchelder | 2023-01-05 | 6 | -68/+90 |
| | | | | test_numbits.py test_oddball.py | ||||
* | mypy: Iterator is better than Generator | Ned Batchelder | 2023-01-05 | 5 | -15/+15 |
| | |||||
* | mypy: use __future__ uniformly in checked files | Ned Batchelder | 2023-01-05 | 24 | -0/+48 |
| | |||||
* | mypy: test_debug.py test_execfile.py test_filereporter.py test_files.py | Ned Batchelder | 2023-01-04 | 6 | -114/+139 |
| | |||||
* | mypy: test_coverage.py, test_data.py | Ned Batchelder | 2023-01-04 | 4 | -174/+193 |
| | |||||
* | mypy: test helpers: conftest.py mixins.py osinfo.py | Ned Batchelder | 2023-01-04 | 3 | -28/+33 |
| | |||||
* | mypy: summary.py, test_summary.py, tests/coveragetest.py | Ned Batchelder | 2023-01-04 | 3 | -102/+155 |
| | |||||
* | mypy: misc.py, test_misc.py | Ned Batchelder | 2023-01-03 | 1 | -14/+14 |
| | |||||
* | refactor: a better way to have maybe-importable third-party modules | Ned Batchelder | 2023-01-03 | 4 | -41/+10 |
| | |||||
* | mypy: test_config.py, test_context.py | Ned Batchelder | 2023-01-03 | 2 | -86/+90 |
| | |||||
* | mypy: test_concurrency.py, test_python.py | Ned Batchelder | 2023-01-03 | 3 | -57/+73 |
| | |||||
* | refactor(test): use tmp_path instead of tmpdir | Ned Batchelder | 2023-01-03 | 4 | -16/+20 |
| | |||||
* | mypy: test_annotate.py test_arcs.py test_collector.py | Ned Batchelder | 2023-01-02 | 3 | -101/+101 |
| | |||||
* | fix: relative_files should keep relative path maps. #1519 | Ned Batchelder | 2023-01-02 | 1 | -2/+12 |
| | |||||
* | mypy: test_xml.py | Ned Batchelder | 2023-01-01 | 1 | -42/+49 |
| | |||||
* | mypy: check collector.py and plugin_support.py | Ned Batchelder | 2023-01-01 | 1 | -1/+1 |
| | |||||
* | refactor: a better way to filter `coverage debug pybehave` | Ned Batchelder | 2023-01-01 | 1 | -0/+6 |
| | |||||
* | mypy: add cmdline.py and test_cmdline.py | Ned Batchelder | 2022-12-31 | 2 | -74/+106 |
| |