summaryrefslogtreecommitdiff
path: root/tests/test_process.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor: simplify some strange string formattingNed Batchelder2021-10-101-2/+2
|
* refactor: no need for maybe-u prefixes in test regexesNed Batchelder2021-10-101-2/+2
| | | | That was for Python 2, which we don't support anymore.
* style: prefer explicit string concatenationNed Batchelder2021-10-101-16/+15
|
* style: use the official designation for utf-8Ned Batchelder2021-10-101-1/+1
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* 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.
* feat: HTML report now says where the report is. #1195 (#1207)Ned Batchelder2021-08-051-2/+2
|
* fix: generate flat file names differentlyNed Batchelder2021-07-151-2/+3
| | | | | | | | Fixes a few unusual issues with reports: - #580: HTML report generation fails on too long path - #584: File collisions in coverage report html - #1167: Remove leading underscore in coverage html
* fix: --fail-under=100 could report 100 is less than 100.Ned Batchelder2021-05-311-0/+16
| | | | | | | Use the same rounding rules for the fail-under message that are used for totals everywhere else, so that it won't say: total of 100 is less than fail-under=100
* build: mark a few lines as not coveredNed Batchelder2021-05-301-2/+2
|
* feat: warnings are now real warningsNed Batchelder2021-05-301-5/+9
| | | | | | This makes coverage warnings visible when running test suites under pytest. But it also means some uninteresting warnings would show up in our own test suite, so we had to catch or suppress those.
* fix: Python 3.8.10 changed how __file__ is reported when running directoriesNed Batchelder2021-05-111-1/+1
|
* refactor: remove a few more version checksNed Batchelder2021-05-021-4/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-41/+40
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-16/+1
|
* fix: don't warn that dynamic plugins already imported their source files. #1150Ned Batchelder2021-05-011-1/+27
|
* fix: restore metacov functioningNed Batchelder2021-04-111-1/+1
| | | | | | | The check for coverage files inside the --source check disables our metacoverage. Removing it means that coverage files will still not be measured, but the reason will be given as "is third-party" rather than "is part of coverage.py," which is a small price to pay.
* fix: don't measure third-party scriptsnedbat/bin-excludeNed Batchelder2021-04-111-44/+111
| | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules.
* fix: don't measure third-party packagesNed Batchelder2021-04-101-1/+99
| | | | | | | | | | | | Avoid measuring code located where third-party packages get installed. We have to take care to measure --source code even if it is installed in a third-party location. This also fixes #905, coverage generating warnings about coverage being imported when it will be measured. https://github.com/nedbat/coveragepy/issues/876 https://github.com/nedbat/coveragepy/issues/905
* test: skip a test on pypyNed Batchelder2021-03-111-5/+4
| | | | | | I thought I knew when this passed and when it failed. Now that our tests are not TestCase's, pytest is enforcing the xfails. This passes locally on Mac, but fails in CI on Mac. So skip it.
* test: show more information for not-passed testsNed Batchelder2021-03-111-1/+1
|
* test: reduce use of unittestNed Batchelder2021-03-111-8/+7
|
* refactor: no need for specialized assert_starts_with methodNed Batchelder2021-03-061-1/+1
|
* build: update to latest pylintNed Batchelder2021-02-261-1/+1
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-37/+19
|
* test: these tests can run during metacovNed Batchelder2021-02-071-1/+0
| | | | I forget why I thought they couldn't run during meta-coverage.
* test: more-uniform skipping of test during metacovNed Batchelder2021-02-071-22/+13
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-11/+17
|
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-170/+162
| | | | One step of moving to pure pytest tests.
* Add combine --keep (#1110)Éric Larivière2021-01-301-0/+22
| | | | | | | | | | | * Add combine --keep Related to https://github.com/nedbat/coveragepy/issues/1108 * Fix unit tests * Fix line too long * Fix line too long
* Clean up the platform constants in env.pyNed Batchelder2021-01-101-1/+1
|
* Always output TOTAL line.Judson Neer2021-01-061-3/+9
|
* This test doesn't work on Mac either.Ned Batchelder2021-01-021-1/+1
|
* This test is picky about platformsNed Batchelder2020-11-281-1/+1
|
* Fix tests for GitHub windows platformNed Batchelder2020-11-281-3/+3
| | | | | | | | | | | | | | The tests were failing because of differences in file paths. It was comparing: C:\Users\runneradmin\AppData\... to: C:\Users\RUNNER~1\AppData\... and failing. These changes normalize the file paths so the comparisons work properly.
* PyPy 3.7 doesn't act exactly like CPython 3.7Ned Batchelder2020-10-101-1/+1
|
* More bitbucket->github urlsNed Batchelder2020-08-181-10/+10
|
* Provide more information in the fail-under messageNed Batchelder2020-06-281-2/+8
|
* message for fail-undernavyad2020-04-191-2/+2
|
* sysconfig has been available since 2.7Ned Batchelder2020-02-291-2/+2
|
* Better xfail mechanismNed Batchelder2020-01-181-3/+5
|
* A test of running coverage when it has been zipped. #862Ned Batchelder2020-01-111-1/+12
|
* A test that reproduces #862Ned Batchelder2020-01-101-0/+18
|
* A test for #909Ned Batchelder2020-01-031-0/+28
|
* Changing PYVERSION to six elements broke one equality comparisonNed Batchelder2019-12-311-1/+1
|
* Adjust other env.PYPY tests to the latest wayNed Batchelder2019-12-311-3/+2
|
* Don't need to check for JSON-era bad-data messages any moreNed Batchelder2019-12-221-10/+0
|
* I'm not sure why I was deleting these meta env varsNed Batchelder2019-12-011-0/+3
| | | | Don't we want to measure the coverage of subprocesses we start in tests?
* Run windows tests in parallelNed Batchelder2019-11-261-1/+16
| | | | | ... and fix the cleanup that prevented it previously by retrying until the cleanup succeeds.
* Adapt to 3.9's way of reporting files using absolute paths.Ned Batchelder2019-11-251-6/+13
|
* Implement __spec__ for files we run. #745 #838Ned Batchelder2019-11-241-7/+26
|