summaryrefslogtreecommitdiff
path: root/coverage
Commit message (Collapse)AuthorAgeFilesLines
...
* perf: more combine speed-upsNed Batchelder2022-11-201-7/+14
| | | | | | | By avoiding writing metadata that differs but doesn't change the data, we get a higher hitrate on the hash-checking when combining. Use --debug=process to include these details for debugging.
* build: allow for .devN version numbersNed Batchelder2022-11-171-7/+11
|
* refactor, docs: clean-up for #1387Ned Batchelder2022-11-172-7/+13
|
* feat: added support for finding unexecuted namespace packages (#1387)Felix Horvat2022-11-174-4/+12
| | | | | | | | | | | | | | | | | | | * add support for namespace packages * fixed typo * update documentation * fixed lint issues * changed versionadded * convert to config setting * removed pure formatting changes * code review changes Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* feat: complete removal of `[run] note`Ned Batchelder2022-11-112-5/+0
|
* fix: path-mapped results shouldn't start with ./Ned Batchelder2022-11-081-0/+3
| | | | Unless the actual result in the config starts with ./
* test: this loop never finishes, and that's fineNed Batchelder2022-11-081-1/+1
| | | | Because the last pattern in G2RX_TOKENS is ".", so it always matches.
* perf: hash data files during combining to avoid unneeded work. #1483Ned Batchelder2022-11-082-29/+45
| | | | | | | | | When generating many parallel data files, often some data files will be exact copies of each other. Checking the hashes, we can avoid combining the duplicates, speeding the process. On a coverage.py metacov, we had 651 duplicates out of 2189 files (29%). The time to combine was reduced by 17%.
* refactor: remove mention of Python 2 unicodeNed Batchelder2022-11-061-2/+1
|
* refactor: no need for special handling of compiling unicode sourceNed Batchelder2022-11-063-40/+4
| | | | This was a holdover from Python 2 days.
* fix: only accept known values for --formatNed Batchelder2022-11-061-1/+2
|
* fix: don't write two rules for an empty table.Ned Batchelder2022-11-061-1/+3
|
* fix: an empty file shouldn't fail with --fail-under=99. #1470Ned Batchelder2022-11-061-1/+1
|
* feat: --format=total writes just the total numberNed Batchelder2022-11-063-6/+13
|
* refactor: human sortingNed Batchelder2022-11-063-10/+13
|
* refactor: more clean up of report table codeNed Batchelder2022-11-051-41/+38
|
* refactor: use `format` wherever we canNed Batchelder2022-11-054-11/+11
|
* refactor: clean up of markdown table supportNed Batchelder2022-11-051-26/+27
|
* feat: report terminal output in Markdown Table format #1418 (#1479)stepeos2022-11-054-56/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * refactoring normal reporting text output * implemented markdown feature from #1418 * minor changes * fixed text output * fixed precision for text and markdown report format * minor changes * finished testing for markdown format feature * fixed testing outside test_summary.py * removed fixed-length widespace padding for tests * removed whitespaces * refactoring, fixing docs, rewriting cmd args * fixing code quality * implementing requested changes * doc fix * test: add another test of correct report formatting * fixed precision printing test * style: adjust the formatting Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* refactor: avoid RawConfigParser, and use super()Ned Batchelder2022-11-031-10/+10
|
* fix: properly measure strange use of wildcard alternatives in match/case. #1421Ned Batchelder2022-11-031-1/+4
|
* build: bump versionNed Batchelder2022-10-311-1/+1
|
* docs: prep for 6.6.0b16.6.0b1Ned Batchelder2022-10-311-1/+1
|
* fix: more relative_files=true fixes. #1280Ned Batchelder2022-10-302-2/+10
|
* fix: use glob matching instead of fnmatch. #1407Ned Batchelder2022-10-303-30/+61
| | | | | | | I didn't understand that fnmatch considers the entire string to be a filename, even if it has slashes in it. This led to incorrect matching. Now we use our own implementation of glob matching to get the correct behavior.
* test: correct some config tests, and fully cover tomlconfig.pyNed Batchelder2022-10-281-7/+4
|
* fix: in toml config, only apply environment substitution to coverage ↵Ned Batchelder2022-10-281-22/+47
| | | | settings. #1481
* build: 3.11.0 and 3.12.0a1 are availableNed Batchelder2022-10-271-1/+0
|
* fix: can't use PYPYVERSION without checking PYPY firstNed Batchelder2022-10-191-1/+4
|
* docs: updates for implicit relative path mappingNed Batchelder2022-10-151-2/+2
|
* feat: implicitly combine relative pathsNed Batchelder2022-10-153-11/+25
|
* refactor: since we are showing regexes, make them a bit simplerNed Batchelder2022-10-151-1/+5
| | | | | | The old code would always wrap the regex in a needless `(?s:...)` parenthesis. Path aliases are always single regexes, so they don't need that extra wrapping. This makes logged path maps easier to understand.
* fix: */foo matches "foo/x.py", to help with combining relative file names. #991Ned Batchelder2022-10-152-1/+3
|
* refactor: remove minor pre-3.7 complexityNed Batchelder2022-10-021-3/+2
|
* build: bump versionNed Batchelder2022-09-291-1/+1
|
* build: prep for 6.5.0Ned Batchelder2022-09-291-1/+1
|
* fix: keep negative arc valuesNed Batchelder2022-09-291-1/+1
|
* feat: include branches taken and missed in JSON report. #1425Christoph Blessing2022-09-291-0/+13
| | | | | | | | | | | | | | | | | | | | | Added more branches to the code whose coverage is checked. Add branch details to json report The json report now includes for each branch which branches have been executed, missed and what the percentage of covered branches was. Add exiting branch arc to json report test Update branch details format Executed and missing branch arcs are stored in the fields named 'executed_branches' and 'missing_branches' respectively. Both fields contain a list of two element lists. The first element represents the source line number and the second one the target line number. Exit branches have their target line number set to 0. Fix linting errors
* docs: minor tweaks to db docsNed Batchelder2022-09-291-2/+2
|
* fix: `class` statements shouldn't be branches. #1449Ned Batchelder2022-09-261-0/+15
| | | | | | Revert "refactor: we no longer need to treat 'class' lines specially" This reverts commit 79f9f4575321fafc2ef770e3255f874db3d4b037.
* feat: --debug=pathmap will show details of re-mapping due to [paths] setting.Ned Batchelder2022-09-163-14/+27
|
* style: adapt to latest pylint concernsNed Batchelder2022-09-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Before these changes, these violations happened: ``` lint run-test: commands[6] | python -m pylint --notes= coverage tests doc ci igor.py setup.py __main__.py ************* Module coverage.parser coverage/parser.py:1290 I: Useless suppression of 'too-many-function-args' (useless-suppression) ************* Module ci.download_gha_artifacts ci/download_gha_artifacts.py:18 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/download_gha_artifacts.py:54 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.trigger_build_kits ci/trigger_build_kits.py:21 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.github_releases ci/github_releases.py:138 E: Too many positional arguments for function call (too-many-function-args) ci/github_releases.py:138 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ************* Module ci.comment_on_fixes ci/comment_on_fixes.py:30 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:37 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:49 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.parse_relnotes ci/parse_relnotes.py:126 E: Too many positional arguments for function call (too-many-function-args) ci/parse_relnotes.py:126 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ```
* docs: 3.12 has a new function we can use somedayNed Batchelder2022-09-081-0/+2
|
* docs: ensure code blocks are highlighted properlyNed Batchelder2022-08-211-2/+6
|
* fix: don't cache a failed parseNed Batchelder2022-08-211-1/+5
| | | | Found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50381
* build: bump versionNed Batchelder2022-08-161-1/+1
|
* build: update 3.11 references to rc1Ned Batchelder2022-08-161-1/+1
|
* build: bump versionNed Batchelder2022-08-061-1/+1
|
* docs: prep for 6.4.3Ned Batchelder2022-08-061-1/+1
|
* fix: paths were wrong when running from root (#1403)Arthur Rio2022-08-061-1/+7
| | | | | | | * Fix paths when running coverage from root * Add simple tests * Use nested pattern for older python versions