Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: don't measure third-party scriptsnedbat/bin-exclude | Ned Batchelder | 2021-04-11 | 2 | -45/+112 |
| | | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules. | ||||
* | test: don't complain if an environment variable we don't want doesn't exist | Ned Batchelder | 2021-04-11 | 1 | -1/+1 |
| | |||||
* | debug: label each matcher with its role | Ned Batchelder | 2021-04-11 | 1 | -6/+6 |
| | |||||
* | fix: don't measure third-party packages | Ned Batchelder | 2021-04-10 | 2 | -3/+102 |
| | | | | | | | | | | | | 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 | ||||
* | fix: make TreeMatcher right for case-sensitive worlds | Ned Batchelder | 2021-04-10 | 1 | -0/+5 |
| | |||||
* | refactor: nice_file can be used as a function | Ned Batchelder | 2021-03-22 | 3 | -18/+19 |
| | |||||
* | refactor: make_file can be used as a function | Ned Batchelder | 2021-03-22 | 2 | -39/+46 |
| | |||||
* | refactor: simplify temp dir cd code | Ned Batchelder | 2021-03-22 | 1 | -15/+10 |
| | |||||
* | refactor: correct a file name: test_mixins.py | Ned Batchelder | 2021-03-11 | 1 | -0/+0 |
| | |||||
* | refactor: pull module cleaning into here | Ned Batchelder | 2021-03-11 | 4 | -60/+86 |
| | | | | We don't need unittest_mixins' module cleaner anymore. | ||||
* | refactor: remove unused test class setting | Ned Batchelder | 2021-03-11 | 5 | -18/+0 |
| | | | | | | | | | unittest_mixins would check that files got created if a test made a temporary directory, so that we could trim down making temp dirs needlessly. But we don't use unittest_mixins any more, so this setting does nothing. Remove it. | ||||
* | refactor: our own change_dir context manager | Ned Batchelder | 2021-03-11 | 4 | -4/+20 |
| | | | | We don't need to use the one from unittest_mixins. | ||||
* | test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcase | Ned Batchelder | 2021-03-11 | 5 | -64/+12 |
| | | | | | | The auto-decorating metaclass was interfering with parameterized methods on Python 2.7. But we don't need it anymore anyway, since pytest will let us hook to deal with the exception in a simpler way. | ||||
* | test: add tests of make_file | Ned Batchelder | 2021-03-11 | 1 | -0/+56 |
| | | | | These are copied from unittest_mixins, and adapted to pytest. | ||||
* | refactor: move tests into classes | Ned Batchelder | 2021-03-11 | 1 | -54/+63 |
| | | | | Now that we don't inherit from TestCase, pytest can parametrize methods. | ||||
* | refactor: no need for our own xfail wrapper | Ned Batchelder | 2021-03-11 | 2 | -9/+3 |
| | |||||
* | test: skip a test on pypy | Ned Batchelder | 2021-03-11 | 1 | -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 tests | Ned Batchelder | 2021-03-11 | 1 | -1/+1 |
| | |||||
* | refactor: use pytest.skip instead of unittest's | Ned Batchelder | 2021-03-11 | 2 | -7/+12 |
| | |||||
* | test: reduce use of unittest | Ned Batchelder | 2021-03-11 | 10 | -50/+164 |
| | |||||
* | test: have pytest collect test classes uniformly | Ned Batchelder | 2021-03-11 | 6 | -17/+8 |
| | |||||
* | refactor: no need for specialized assert_starts_with method | Ned Batchelder | 2021-03-06 | 4 | -18/+2 |
| | |||||
* | refactor: replace unittest_mixins.EnvironmentAwareMixin with a pytest adapter | Ned Batchelder | 2021-03-04 | 2 | -2/+20 |
| | |||||
* | feat: percent_covered_display in the JSON reportnedbat/tweak-metacov | Ned Batchelder | 2021-03-02 | 1 | -4/+13 |
| | |||||
* | fix: don't report branches to missing lines. #1065 | Ned Batchelder | 2021-02-28 | 2 | -6/+6 |
| | | | | | Fixes: #1065 Fixes: #955 | ||||
* | fix: improve an error message. #803 | Ned Batchelder | 2021-02-28 | 1 | -2/+4 |
| | | | | Fixes #803. | ||||
* | fix: HTML report makes room for 4-digit line numbers #1124 | Ned Batchelder | 2021-02-27 | 1 | -5/+5 |
| | | | | Fixes: #1124 | ||||
* | test: add tests of report sorting options | Ned Batchelder | 2021-02-26 | 1 | -0/+10 |
| | |||||
* | build: update to latest pylint | Ned Batchelder | 2021-02-26 | 2 | -4/+4 |
| | |||||
* | test: add a test of missing sections and options | Ned Batchelder | 2021-02-25 | 1 | -0/+12 |
| | |||||
* | refactor: put a test in a more appropriate class | Ned Batchelder | 2021-02-25 | 1 | -11/+11 |
| | |||||
* | refactor: simplify a one-iteration loop | Ned Batchelder | 2021-02-25 | 1 | -4/+3 |
| | |||||
* | test: oops, accidentally always skipped this test | Ned Batchelder | 2021-02-24 | 1 | -1/+1 |
| | |||||
* | test: add tests of the failure asserts from check_coverage | Ned Batchelder | 2021-02-22 | 2 | -3/+54 |
| | | | | This brings the coverage of tests/coveragetest.py to 100%. | ||||
* | refactor: slightly better coverage in coveragetest | Ned Batchelder | 2021-02-21 | 2 | -4/+4 |
| | |||||
* | refactor: convert all skipping to pytest skips | Ned Batchelder | 2021-02-07 | 14 | -107/+53 |
| | |||||
* | refactor: a better way to skip these tests | Ned Batchelder | 2021-02-07 | 1 | -5/+1 |
| | |||||
* | refactor: make all coverage.env uses uniform | Ned Batchelder | 2021-02-07 | 1 | -2/+2 |
| | |||||
* | test: metacov is always xdist | Ned Batchelder | 2021-02-07 | 1 | -1/+1 |
| | |||||
* | test: these tests can run during metacov | Ned Batchelder | 2021-02-07 | 1 | -1/+0 |
| | | | | I forget why I thought they couldn't run during meta-coverage. | ||||
* | test: more-uniform skipping of test during metacov | Ned Batchelder | 2021-02-07 | 2 | -25/+15 |
| | |||||
* | refactor: remove unittest.assertCountEqual | Ned Batchelder | 2021-02-06 | 10 | -37/+56 |
| | | | | Another step toward removing unittest.TestCase. | ||||
* | refactor: remove reliance on unittest_mixins.StdStreamCapturingMixin | Ned Batchelder | 2021-02-02 | 6 | -26/+62 |
| | | | | This is another step toward removing unittest.TestCase as a base class. | ||||
* | refactor: move test mixins to their own file | Ned Batchelder | 2021-02-02 | 4 | -32/+46 |
| | |||||
* | test: keep multi-assert arc diffs working | Ned Batchelder | 2021-01-31 | 2 | -27/+23 |
| | | | | | We don't have a way to do multi-assert in the pytest we're running, so cobble it together ourselves. | ||||
* | test: configure pytest assertion rewriting in coveragetest.py | Ned Batchelder | 2021-01-31 | 1 | -0/+4 |
| | |||||
* | style: fix long lines and avoid backslashesnedbat/unittest2pytest | Ned Batchelder | 2021-01-31 | 20 | -167/+179 |
| | |||||
* | style: correct placement of auto-added pytest imports | Ned Batchelder | 2021-01-31 | 14 | -14/+21 |
| | |||||
* | style: singleton comparisons should use is | Ned Batchelder | 2021-01-31 | 7 | -16/+16 |
| | | | | | | I guess the original line was wrong, but it would have been nice for unittest2pytest to fix it for me: https://github.com/pytest-dev/unittest2pytest/issues/52 | ||||
* | refactor: mark an internal method | Ned Batchelder | 2021-01-31 | 1 | -4/+4 |
| |