summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* test: we really don't want to hear about imp being deprecatedNed Batchelder2021-10-121-0/+5
|
* test: add a test that self.stdout() works the way it says.Ned Batchelder2021-10-121-0/+9
|
* fix: use human sorting on human-readable thingsNed Batchelder2021-10-122-8/+39
|
* test: lightly test the ast_dump functionNed Batchelder2021-10-121-2/+24
|
* fix: find_writable_pth_directory must expect failure from open()Michał Górny2021-10-121-4/+4
| | | | | | | Fix find_writable_pth_directory() to expect the OSError from the open() call. In general, this is what's going to happen if the file is not writable. The current logic could only be triggered e.g. if the file was writable but the underlying filesystem run out of space.
* fix: source modules need to be re-imported. #1232Ned Batchelder2021-10-112-13/+11
|
* test: add more tests of run_python_fileNed Batchelder2021-10-112-5/+93
| | | | | | The tests in test_process run the exception handling in execfile.py, but only under coverage, so metacov can't see it. These smaller tests exercise the code without coverage on top.
* test: add a test of hash-based pyc filesNed Batchelder2021-10-111-2/+9
|
* fix: make third-party detection work with namespace packages. #1231Ned Batchelder2021-10-101-3/+74
|
* refactor: remove some left over test printsNed Batchelder2021-10-101-3/+0
|
* test: cover the last edge cases in sqldata.pyNed Batchelder2021-10-101-2/+12
|
* fix: raise CoverageException for SQLite connection errorsnedbat/sqldata-edge-testsNed Batchelder2021-10-101-0/+8
|
* refactor: simplify some strange string formattingNed Batchelder2021-10-102-5/+5
|
* test: test two add_file_tracer possibilitiesNed Batchelder2021-10-101-0/+22
|
* refactor: no need for maybe-u prefixes in test regexesNed Batchelder2021-10-104-11/+11
| | | | That was for Python 2, which we don't support anymore.
* test: run test_data.py with debugging onNed Batchelder2021-10-101-96/+110
|
* refactor: remove a mixin class from testsNed Batchelder2021-10-101-67/+64
|
* style: prefer explicit string concatenationNed Batchelder2021-10-1011-106/+100
|
* refactor: remove a Python 2 thingNed Batchelder2021-10-101-6/+1
|
* style: use the official designation for utf-8Ned Batchelder2021-10-104-4/+4
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* fix: contexts_by_lineno now returns a true dictNed Batchelder2021-10-091-3/+24
|
* test: add a test of touching files in an empty CoverageDataNed Batchelder2021-10-091-0/+6
|
* refactor: don't need this printNed Batchelder2021-10-091-1/+0
|
* test: set_query_contexts takes regex, make the examples look like regexNed Batchelder2021-10-091-6/+6
|
* test: this xdist defensiveness now seems unneededNed Batchelder2021-10-081-26/+0
|
* test: make metacov work with xdistNed Batchelder2021-10-081-1/+1
| | | | | | | | | I was using pytest.__file__ as a directory, but in 5.3.2, pytest changed to be a package, so that wasn't the site-packages directory anymore, and our .pth file was written someplace useless. Now we don't rely on the structure of pytest (why did we ever?), and it works again.
* test: canonicalize this bit of debug outputNed Batchelder2021-10-081-1/+1
|
* build: make "clean" targets be quietNed Batchelder2021-10-081-1/+1
|
* docs: note #1210 in the changelogNed Batchelder2021-10-061-1/+3
|
* Fix an incompatibility with pyarmorglacials2021-10-061-0/+6
|
* fix: pretend we didn't import third-party packages we use. #1228Ned Batchelder2021-10-061-1/+19
| | | | | | tomli couldn't use coverage themselves because we imported it early. Cleaning sys.modules means their own imports will actually execute after coverage has started, so their files will be properly measured.
* test: fix flaky multiprocessing testsNed Batchelder2021-09-291-1/+1
| | | | | Tests are failing because we expect to see three different pids, but only get two. Is that because the work is being completed too quickly?
* test: another test suggested by Mark ShannonNed Batchelder2021-08-311-0/+15
|
* refactor: use sets to collect dataNed Batchelder2021-08-151-34/+32
| | | | | | | Coverage.py predates sets as a built-in data structure, so the file data collection has long been dicts with None as the values. Sets are available to us now (since Python 2.4 in 2004, which coverage.py dropped support for in 2014!), we use sets.
* fix: missing exceptions through with statements in 3.10 aren't considered ↵Ned Batchelder2021-08-141-0/+56
| | | | missing branches. #1205
* refactor: move a test helper to CoverageTestNed Batchelder2021-08-142-6/+10
|
* test: a part-covered comprehensionNed Batchelder2021-08-092-4/+3
| | | | | The comprehension would only completely finish (->exit) if the assert was going to fail. So we expect it to not finish.
* test: simplify pyc logicNed Batchelder2021-08-091-9/+2
| | | | | | The old pycache_prefix logic was because we would run tests in Docker containers, and they went faster if we set PYTHONCACHEPREFIX. But we don't do that anymore, so we can use simpler code.
* test: exclude one last line in test_api.pyNed Batchelder2021-08-091-1/+1
|
* test: add a test for #1205 bpo-44840Ned Batchelder2021-08-091-1/+27
|
* feat: mention skipped file counts in the HTML report. #1163Ned Batchelder2021-08-061-0/+4
|
* test: add a test of the one thing uncovered in results.pyNed Batchelder2021-08-051-0/+8
|
* feat: `coverage combine` now prints messages naming the files being ↵Ned Batchelder2021-08-052-12/+22
| | | | combined. #1105 (#1208)
* feat: HTML report now says where the report is. #1195 (#1207)Ned Batchelder2021-08-053-4/+5
|
* feat: unrecognized options are now a warning rather than error. #1035 (#1206)Ned Batchelder2021-08-051-6/+6
| | | | Because they are warnings issued while parsing the configuration file, it's not possible to suppress them with the coverage configuration.
* style: fix typos discovered by codespell (#1197)Christian Clauss2021-08-013-3/+3
| | | | | | | | | | | python3 -m pip install codespell codespell --ignore-words-list="ba,cant,datas,hart,linke,ned,nin,overthere,upto" --skip="*.js" * Fix typos discovered by codespell * datas * intgers ==> integers
* refactor: convert %-strings to f-stringsNed Batchelder2021-07-281-2/+2
|
* fix: match/case will trace the default case lineNed Batchelder2021-07-271-1/+1
|
* test: don't report this function in pytest tracebacksNed Batchelder2021-07-201-0/+1
|
* test: check the plugin warnings differentlyNed Batchelder2021-07-201-1/+2
| | | | | | | | The old way, extra warnings that we don't care about could creep in. For some reason, disabling PyContracts causes "imp" DeprecationWarnings to appear in the list. Rather than assert there's only one warning, assert there's only one from us.