Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: lcov report indexeerror for some Jinja2 files. #1553 | Ned Batchelder | 2023-05-14 | 1 | -0/+2 |
| | |||||
* | style: a bit of refactoring for lcov code | Ned Batchelder | 2023-05-13 | 1 | -9/+13 |
| | |||||
* | refactor: mypy doesn't need this cast anymore | Ned Batchelder | 2023-05-13 | 1 | -2/+2 |
| | |||||
* | refactor: file names match the commands they implement better | Ned Batchelder | 2023-05-13 | 9 | -388/+388 |
| | |||||
* | test: adjust pybehave and tests for pypy 3.10 | Ned Batchelder | 2023-05-12 | 1 | -5/+2 |
| | |||||
* | fix: Python3.12 now inlines comprehensions | Ned Batchelder | 2023-05-11 | 2 | -3/+8 |
| | |||||
* | style: some clean-ups | Ned Batchelder | 2023-05-09 | 4 | -10/+6 |
| | |||||
* | build: bump version | Ned Batchelder | 2023-04-30 | 1 | -2/+2 |
| | |||||
* | docs: prep for 7.2.5 | Ned Batchelder | 2023-04-30 | 1 | -2/+2 |
| | |||||
* | fix: a fake stdout might not have isatty | Ned Batchelder | 2023-04-30 | 1 | -1/+1 |
| | |||||
* | build: bump version | Ned Batchelder | 2023-04-28 | 1 | -2/+2 |
| | |||||
* | docs: prep for 7.2.4 | Ned Batchelder | 2023-04-28 | 1 | -2/+2 |
| | |||||
* | fix: specific files to include/omit should match even with relative files #1604. | Ned Batchelder | 2023-04-27 | 1 | -3/+2 |
| | |||||
* | refactor: parametrize a test for #1608 | Ned Batchelder | 2023-04-27 | 1 | -3/+3 |
| | |||||
* | fix: source paths with trailing slashes causing inconsistent sources in XML ↵ | Kevin Brown-Silva | 2023-04-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | report with relative_paths (#1608) * Added failing test for source with trailing slash This test is nearly identical to the one above it, with the only change being the source that is used. This may end up turning into a fixture instead if the tests end up being identical after the fix is made. * Strip trailing slash for relative source paths This fixes an issue introduced in 45cf7936ee605cfe06f7f5967a72a73198960120 where using `relative_files=True` and `src` with a trailing slash, the source inserted as `<sources>` in the XML report would also have a trailing slash. This also fixes an issue introduced in the same commit where an empty `<source>` would be inserted as well for cases where the `src` has a trailing slash. | ||||
* | test: refactor and add a test of terminal link text | Ned Batchelder | 2023-04-26 | 2 | -9/+15 |
| | |||||
* | fix: no need for terminal url except for html report | Ned Batchelder | 2023-04-26 | 1 | -7/+1 |
| | |||||
* | feat: add hyperlink to console output (#1613) | Ricardo Newbery | 2023-04-26 | 2 | -2/+16 |
| | | | | | * Add hyperlink to console output * python 3.7 compat version of detecting console tty | ||||
* | build: bump version | Ned Batchelder | 2023-04-06 | 1 | -2/+2 |
| | |||||
* | docs: prep for 7.2.3 | Ned Batchelder | 2023-04-06 | 1 | -2/+2 |
| | |||||
* | fix: save coverage data on SIGTERM (#1600) | Lewis Gaul | 2023-04-06 | 1 | -1/+1 |
| | | | | | | | * Add test that reproduces the issue * Suggested fix - always save data in sigterm exit flow * Address test failures on MacOS due to lack of 'Terminated' output on SIGTERM | ||||
* | perf: make the context shortcodes even shorter | Ned Batchelder | 2023-04-01 | 2 | -21/+49 |
| | | | | On the coverage.py metacov, this makes the HTML 5% smaller. | ||||
* | style: use double-quotes in JavaScript | Ned Batchelder | 2023-04-01 | 1 | -10/+10 |
| | |||||
* | style: double quotes | Ned Batchelder | 2023-03-22 | 20 | -230/+230 |
| | |||||
* | style: use double-quotes | Ned Batchelder | 2023-03-22 | 7 | -170/+170 |
| | |||||
* | style: clean up #1587 | Ned Batchelder | 2023-03-22 | 5 | -24/+13 |
| | |||||
* | fix: put contexts dict in <script> and reveal them using JavaScript (#1587) | Oleh Krehel | 2023-03-22 | 5 | -5/+46 |
| | | | | | | | | | | | | | | | * Put contexts dict in <script> and reveal them using JavaScript Fixes #1584 * Address review comments * coverage/htmlfiles/style.css: Align the contexts to the right * coverage/htmlfiles/style.scss: Match style.css * coverage/html.py: Fix linting and mypy errors * two_tests_py.html: make update-gold | ||||
* | build: bump version | Ned Batchelder | 2023-03-16 | 1 | -2/+2 |
| | |||||
* | docs: prep for 7.2.2 | Ned Batchelder | 2023-03-16 | 1 | -2/+2 |
| | |||||
* | fix: Remove missing type parameter (#1570) | KotlinIsland | 2023-03-15 | 1 | -1/+5 |
| | | | | Co-authored-by: KotlinIsland <kotlinisland@users.noreply.github.com> Co-authored-by: Ned Batchelder <ned@nedbatchelder.com> | ||||
* | fix: don't measure all third-party packages if source is in third-party location | Manuel Jacob | 2023-03-15 | 1 | -12/+13 |
| | | | | | | | | 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 | -1/+1 |
| | | | | | | | * 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 | -2/+2 |
| | |||||
* | fix: recent pypy3.9 now omits lines after jumps | Ned Batchelder | 2023-03-12 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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] ``` | ||||
* | build: run mypy by default, and fix "unused" errors from updated mypy | Ned Batchelder | 2023-03-07 | 1 | -1/+1 |
| | |||||
* | build: bump version | Ned Batchelder | 2023-02-26 | 1 | -2/+2 |
| | |||||
* | docs: prep for 7.2.1 | Ned Batchelder | 2023-02-26 | 1 | -2/+2 |
| | |||||
* | fix: export our public names for type checking. #1564 | Ned Batchelder | 2023-02-26 | 4 | -9/+27 |
| | |||||
* | refactor: remove unneeded pydoc weirdness | Ned Batchelder | 2023-02-25 | 1 | -11/+3 |
| | |||||
* | fix: always use full-version rtfd links #1566 | Ned Batchelder | 2023-02-24 | 1 | -5/+4 |
| | |||||
* | build: bump version | Ned Batchelder | 2023-02-22 | 1 | -2/+2 |
| | |||||
* | docs: prep for 7.2.0 | Ned Batchelder | 2023-02-22 | 1 | -2/+2 |
| | |||||
* | feat: add extend_exclude option | Alpha Chen | 2023-02-22 | 1 | -0/+3 |
| | |||||
* | refactor: no placebos, use true Optional | Ned Batchelder | 2023-02-14 | 2 | -50/+39 |
| | | | | | | 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. | ||||
* | refactor: make placebos private | Ned Batchelder | 2023-02-12 | 1 | -7/+7 |
| | |||||
* | fix: Path objects are ok for data_file and config_file. #1552 | Ned Batchelder | 2023-02-12 | 3 | -6/+21 |
| | |||||
* | refactor: use placebos instead of non-existent attributes | Ned Batchelder | 2023-02-11 | 3 | -37/+72 |
| | | | | | Details of the problem and thought process: https://nedbatchelder.com/blog/202302/late_initialization_with_mypy.html | ||||
* | mypy: typeshed bug got fixed | Ned Batchelder | 2023-02-09 | 1 | -3/+2 |
| | |||||
* | test: adapt to latest pylint | Ned Batchelder | 2023-02-09 | 3 | -3/+3 |
| | |||||
* | fix: only write "Wrote report" message if report succeeded. | Ned Batchelder | 2023-02-08 | 1 | -12/+11 |
| | | | | | | | 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. |