summaryrefslogtreecommitdiff
path: root/coverage
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* fix: filenames can contain special glob characters (#1405)earthman12022-08-062-3/+3
| | | | | * Fix globbing of filenames that contain special glob characters * glob the path as well as the filename
* fix(html): trigger filter on page load (#1413)Marc Legendre2022-08-061-1/+1
| | | | | | | | | In the HTML report, if the "filter" input contains a value when the page loads, it is ignored. This happens even though an event is actually created on start-up to trigger the refresh. I believe this is a regression introduced in 9a1954a224c7c0f578513d8f4ca5f821fcf2cf5a, when the observed events changed from "keyup change" to "input".
* fixed "mNan" id in scroll markers (#1414)LordBaryhobal2022-08-061-1/+1
|
* fix: reduce the scope of a try/except.Ned Batchelder2022-08-061-2/+3
|
* fix: don't fail if can't find a relative path to a data file on another ↵Lorenzo Micò2022-08-061-1/+7
| | | | | volume on win32 (#1428) (#1430) Co-authored-by: Lorenzo Micò <lmico@dxc.com>
* Map also empty dictionaries to fileMatus Valo2022-08-061-1/+1
|
* test: xfail some tests that need PyPy to improve #1426Ned Batchelder2022-08-021-1/+1
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792
* build: bump versionNed Batchelder2022-07-121-1/+1
|
* docs: prep for 6.4.2Ned Batchelder2022-07-121-1/+1
|
* fix: 3.11.0b4 has 0-numbered lines. Fixes #1419Ned Batchelder2022-07-122-1/+4
| | | | | CPython added these lines in https://github.com/python/cpython/commit/1bfe83a114da3939c00746fc44dc5da7f56f525f
* style: use new regex match object group accessNed Batchelder2022-07-082-5/+5
|
* fix: COLLECT_STATS crash due to wrong BuildValue formatNed Batchelder2022-06-111-1/+1
| | | | This should have been part of 80211966 from 2021-10-18.
* fix: when stashing the singleton to sys.modules, use an actual module ↵Yilei "Dolee" Yang2022-06-111-2/+7
| | | | | object. (#1399) At least this won't trip anyone iterating through sys.modules and expects the values are actual modules.
* refactor: SQLite REGEX function can be inlineNed Batchelder2022-06-081-6/+1
|
* Use `PyCode_GetCode`Dennis Sweeney2022-06-061-1/+4
|
* style: pylint changed to 2.14, adapt.Ned Batchelder2022-06-021-0/+1
|
* build: bump versionNed Batchelder2022-06-021-1/+1
|
* build: prep for 6.4.1Ned Batchelder2022-06-021-1/+1
|
* fix: use tomli for [toml] under more precise conditions. #1390Ned Batchelder2022-06-011-1/+1
|
* docs: mentioned pull #1388Ned Batchelder2022-05-301-4/+3
|
* perf: PyTracer improvements (#1388)Carl Friedrich Bolz-Tereick2022-05-301-24/+41
| | | | | | | | | | | | | | | | | * cache the bound method of _trace on self this speeds up pure python tracing because we don't have to re-create a bound method object all the time * optimize checking whether a file should be traced the optimization works based on the following heuristic: in a majority of cases, functions call other functions in the same file. In that situation we don't have to re-check whether we should trace the file * fix optimization in the presence of contexts * fix too long line
* build: always use three-component version numbersNed Batchelder2022-05-301-3/+1
| | | | | Someone thought we didn't use semantic versioning because we said "6.4" instead of "6.4.0". Don't trim .0.
* perf: set frame->f_trace_lines=0 when not tracing. ~3% fasterNed Batchelder2022-05-282-0/+5
|
* perf: speed up python tracer with frame.f_trace_lines = False (#1381)Carl Friedrich Bolz-Tereick2022-05-281-0/+2
| | | | | | | | | use the python >= 3.7 feature of being able to disable line tracing by setting the frame attribute f_trace_lines to False. This can be used for the frames of functions that we aren't collecting coverage information for (eg those functions in the stdlib). This speeds up the pure python tracer in CPython by ~9x and in PyPy by 80% on a coverage run of one realistic project that I tried.
* build: bump versionNed Batchelder2022-05-221-1/+1
|
* fix: don't create a data file when just trying to read one. #13286.4Ned Batchelder2022-05-221-2/+3
|
* build: prep for 6.4Ned Batchelder2022-05-221-1/+1
|
* feat: a new debug option `sqldata` shows all the data being written to the db.Ned Batchelder2022-05-221-10/+23
|
* refactor: SqliteDb uses its debug object more like other codeNed Batchelder2022-05-221-7/+7
|
* style: make sqldata.py code more uniformNed Batchelder2022-05-211-20/+20
|
* fix: CoverageData(no_disk=True).update() now works. #1323Ned Batchelder2022-05-211-5/+7
|
* style(html): clean up the html tags and stylesNed Batchelder2022-05-204-57/+60
|
* feat: also include the version and timestamp at the top of the index page: #1354Ned Batchelder2022-05-201-0/+5
|
* feat(html): version and timestamp at the top of report files.Ned Batchelder2022-05-203-20/+33
| | | | This is a re-implementation of pull #1354.
* fix: next/prev links in HTML report don't link to skipped files.Ned Batchelder2022-05-191-63/+61
| | | | | Previously, the next link might refer to a file that was skipped because it was empty or 100% covered. Now they do not.
* docs: thanks for the new keyboard shortcutsNed Batchelder2022-05-191-3/+2
|
* feat: more html keyboard shortcutsJ. M. F. Tsang2022-05-194-13/+128
| | | | | | | | | | | | | | | | | | | | On each page the shortcuts '[' and ']' will take you to the previous and next files respectively. On the index page they take you to the final and first files respectively. Pressing 'u' while on a file will now take you back to index.html, like on Gerrit. '?' opens and closes the help panel. Test cases: $ pytest --cov-report html --cov=. tests.py in a directory with just tests.py, then with one, two or three .py files. Tested on Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:99.0) Gecko/20100101 Firefox/99.0
* build: the next version will be 6.4Ned Batchelder2022-05-181-1/+1
|