Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | docs: more description in balance_xdist_plugin.py | Ned Batchelder | 2021-12-11 | 1 | -3/+19 |
| | |||||
* | build: make upgradenedbat/upgrade-with-kits | Ned Batchelder | 2021-11-30 | 3 | -4/+4 |
| | |||||
* | test(feat): track test times, and balance xdist workers | Ned Batchelder | 2021-11-28 | 2 | -49/+179 |
| | | | | In the end, this seems to only speed things up by about 5% | ||||
* | test(refactor): avoid full commands to speed tests | Ned Batchelder | 2021-11-26 | 2 | -199/+192 |
| | | | | Also btw, I think some of these tests are duplicative. | ||||
* | test(perf): shave a few seconds off the FailUnder tests | Ned Batchelder | 2021-11-26 | 1 | -12/+9 |
| | |||||
* | feat: multiple --concurrency values. #1012 #1082nedbat/multi-concurrency | Ned Batchelder | 2021-11-25 | 2 | -17/+96 |
| | |||||
* | test(fix): keep SourceIncludeOmitTest's from clobbering each other | Ned Batchelder | 2021-11-24 | 1 | -8/+20 |
| | | | | | | | | Because they cd'd into a folder in the shared source tree, their data files would collide, leading to flaky tests. Also, add a check that the tests collected some data, and add sys.path to the debug=trace output. | ||||
* | test(fix): skip tests that trip a specific Mac 3.9 eventlet bug | Ned Batchelder | 2021-11-24 | 1 | -0/+10 |
| | |||||
* | test(build): a better way to pin light-thread packages | Ned Batchelder | 2021-11-24 | 1 | -0/+1 |
| | | | | | Also, clearly indicate when we are skipping tests because the packages aren't available. | ||||
* | test(refactor): simplify the logic of writing subcover.pth | Ned Batchelder | 2021-11-21 | 1 | -4/+2 |
| | |||||
* | test(fix): remove the subcover.pth file when the main session ends | Ned Batchelder | 2021-11-21 | 1 | -16/+20 |
| | | | | | Leaving the pth file meant that the next igor run would start coverage, which meant igor couldn't delete the C extension file on Windows. | ||||
* | test(refactor): if two skips apply, put the more significant reason closer ↵ | Ned Batchelder | 2021-11-21 | 2 | -2/+2 |
| | | | | to the def | ||||
* | test(refactor): use pathlib for the pth files | Ned Batchelder | 2021-11-21 | 1 | -11/+9 |
| | |||||
* | test(fix): never delete the pth file | Ned Batchelder | 2021-11-21 | 1 | -4/+6 |
| | |||||
* | fix(test): make .pth files once per session | Ned Batchelder | 2021-11-21 | 3 | -70/+55 |
| | | | | | | | | | | | The old way, we made and deleted .pth file around each test. This caused problems because pth files are written to a common location shared by all test workers, so tests would fail because pth files were being deleted as other workers were trying to use them. Now we make the pth file once per session. There's still a chance that a worker will be using a pth file just as another worker is ending and removing it. | ||||
* | debug: see the output from run_in_venv | Ned Batchelder | 2021-11-21 | 1 | -0/+2 |
| | |||||
* | refactor(test): move unicode handling tests to individual test files | Ned Batchelder | 2021-11-20 | 4 | -85/+87 |
| | | | | Eight fewer sub-processes | ||||
* | refactor(test): three more subprocesses gone in test_summary.py | Ned Batchelder | 2021-11-20 | 1 | -22/+10 |
| | |||||
* | refactor(test): avoid 8 subprocesses in test_summary.py | Ned Batchelder | 2021-11-20 | 1 | -45/+29 |
| | |||||
* | refactor(test): remove subprocesses from test_xml.py | Ned Batchelder | 2021-11-20 | 1 | -15/+23 |
| | |||||
* | refactor(test): no more subprocesses in test_html.py | Ned Batchelder | 2021-11-20 | 1 | -9/+13 |
| | |||||
* | refactor(test): make_data_file is a helper for making data files | Ned Batchelder | 2021-11-20 | 3 | -19/+27 |
| | |||||
* | fix: suffix=False will suppress the suffix even with multiprocessing. #989 | Ned Batchelder | 2021-11-18 | 1 | -0/+20 |
| | |||||
* | test: properly reset a few globals between every test | Ned Batchelder | 2021-11-17 | 2 | -3/+19 |
| | |||||
* | refactor: specialize exceptions | Ned Batchelder | 2021-11-14 | 8 | -57/+57 |
| | | | | | | CoverageException is fine as a base class, but not good to use for raising (and catching sometimes). Introduce specialized exceptions that allow third-party tools to integrate better. | ||||
* | docs: document the exceptions | Ned Batchelder | 2021-11-14 | 3 | -9/+9 |
| | | | | ... and make some of them private. | ||||
* | test: add a test of `coverage debug premain` | Ned Batchelder | 2021-11-13 | 1 | -0/+15 |
| | |||||
* | debug: the `coverage debug` command no longer accepts multiple topics | Ned Batchelder | 2021-11-13 | 1 | -3/+7 |
| | |||||
* | feat: 'debug data' now enumerates combinable files also | Ned Batchelder | 2021-11-13 | 1 | -9/+31 |
| | |||||
* | refactor: add_lines only needs an iterable of ints | Ned Batchelder | 2021-11-13 | 4 | -31/+31 |
| | | | | | The old code expected a dict with int keys, but iterables are simpler, so get rid of a lot of dict.fromkeys() nonsense. | ||||
* | test(fix): make the fullcoverage test work on 3.11 | Ned Batchelder | 2021-11-12 | 1 | -3/+1 |
| | | | | | It didn't work because the os module is frozen on 3.11, so it gets no measurement. Use -X to disable the frozen modules feature for the test. | ||||
* | fix: don't overwrite a .gitignore in the html output directory. #1244nedbat/1244-again | Ned Batchelder | 2021-11-12 | 1 | -0/+7 |
| | |||||
* | test(refactor): convert looping tests to parametrize | Ned Batchelder | 2021-11-11 | 3 | -51/+45 |
| | |||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 15 | -32/+30 |
| | |||||
* | refactor: we no longer need to treat 'class' lines specially | Ned Batchelder | 2021-11-11 | 1 | -3/+3 |
| | | | | | Originally, this tokenizing code was paired with bytecode analysis. But now we use AST instead, so class lines don't need to be handled differently. | ||||
* | fix: colons in decorators shouldn't stop an exclusion | Ned Batchelder | 2021-11-10 | 1 | -1/+21 |
| | |||||
* | fix: CPython 3.11 support. #1241 | Ned Batchelder | 2021-11-10 | 2 | -0/+4 |
| | | | | | | | | | | | The fix for CTracer is egregious and will need to be updated when there's a supported way to do it. The fullcoverage skip is noted in https://github.com/nedbat/coveragepy/issues/1278 The raise_through_with skip is noted in https://github.com/nedbat/coveragepy/issues/1270 | ||||
* | fix: warn about more source file problems | Ned Batchelder | 2021-11-09 | 1 | -1/+6 |
| | |||||
* | refactor(test): convert eight tests to one parametrized test | Ned Batchelder | 2021-11-07 | 1 | -27/+4 |
| | |||||
* | refactor(test): use the expected name for initializing tests. | Ned Batchelder | 2021-11-07 | 9 | -27/+24 |
| | | | | | | | | | Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better. | ||||
* | fix: remapping paths during combining needs to follow relative_files=True. #1147 | Ned Batchelder | 2021-11-06 | 2 | -76/+101 |
| | |||||
* | fix: give a default value to the name argument for Matchers. #1273 | Ned Batchelder | 2021-11-05 | 1 | -6/+6 |
| | |||||
* | fix: don't report branches to exclusions as missing. #1271 | Ned Batchelder | 2021-11-05 | 1 | -1/+15 |
| | |||||
* | refactor(test): make traceback checks a bit flexible | Ned Batchelder | 2021-11-04 | 2 | -7/+11 |
| | | | | | | | | | | | | Python 3.11 made a traceback look like this: Traceback (most recent call last): File "{path}", line 8, in <module> print(sys.argv[1]) ~~~~~~~~^^^ IndexError: list index out of range We needed to not care if that tilde-caret line was present or not. | ||||
* | refactor(test): don't even import contracts if not using PyContracts | Ned Batchelder | 2021-11-04 | 1 | -2/+2 |
| | | | | | | | | On CPython 3.11, PyContracts fails on import, so we need to shut it off more completely. PyContracts is unmaintained these days, so we'll probably get rid of it completely soon. | ||||
* | test(fix): isolate excepthook tests from each other | Ned Batchelder | 2021-11-02 | 2 | -0/+9 |
| | |||||
* | build(test): remove obsolete jQuery gold files #840 | Ned Batchelder | 2021-11-02 | 6 | -182/+23 |
| | |||||
* | test: force VirtualenvTest onto one worker to save time | Ned Batchelder | 2021-11-02 | 1 | -7/+50 |
| | | | | | | | | | | | VirtualenvTest is slow because it has a session-scoped fixture that takes 10s to run. If all of those tests go to the same worker, we can reuse that fixture. If they go to different workers, we have to spend that time more than once. This is a hack which seems to work, but no guarantees into the future. Also, I don't know why the VirtualenvTests aren't run first on their worker. Time saved: about 10%, from ~50s to ~45s. | ||||
* | perf(test): run pip just once, shaves 1.2s off the fixture | Ned Batchelder | 2021-10-31 | 1 | -8/+9 |
| | | | | ... though that means it's 8.1s instead of 9.3s, so still pretty slow. | ||||
* | test: use the coverage-command fixture throughout the venv tests | Ned Batchelder | 2021-10-31 | 1 | -4/+4 |
| |