Commit Graph

17 Commits

Author SHA1 Message Date
Florian Bruhin 488339b3d5 coverage: Set patch = subprocess
Subprocess measuring got integrated into coverage.py and removed from
pytest-cov:

https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst#700-2025-09-09
https://coverage.readthedocs.io/en/latest/config.html#run-patch
2025-09-15 13:12:38 +02:00
Florian Bruhin e68cc87228 Revert "coverage: Show contexts by default"
This reverts commit 65345eab95.
Coverage shows warnings when no contexts were recorded.
2022-05-24 11:53:24 +02:00
Florian Bruhin 65345eab95 coverage: Show contexts by default
We don't pass --cov-context=test by default though, as it slows dowh the test run by 2.5min and results in a 325 MB htmlcov/
2022-04-22 09:04:33 +02:00
Florian Bruhin 836bcdc1b3 coverage: Also check for TYPE_CHECKING 2020-10-28 13:04:18 +01:00
Florian Bruhin 6f09c18ecd Run coverage over tests/scripts
Rationale: https://nedbatchelder.com/blog/202008/you_should_include_your_tests_in_coverage.html
Switched from "source" to "include" as a workaround for
https://github.com/nedbat/coveragepy/issues/578 - also see:
https://github.com/LibraryOfCongress/concordia/pull/857/files
2020-08-11 19:43:05 +02:00
Florian Bruhin be31f1b6e0 Fix coverage 2019-09-13 13:12:54 +02:00
Florian Bruhin 09c0bb9d14 Use typing.TYPE_CHECKING
Now that we depend on Python >= 3.5.2, we can use it everywhere.
2019-09-13 13:12:54 +02:00
Florian Bruhin 403e63d6f2 Configure coverage.py for "if MYPY:" 2018-12-05 09:05:32 +01:00
Florian Bruhin f4ed31b295 Add an utils.Unreachable exception 2017-12-15 16:33:47 +01:00
Florian Bruhin 023d80fe40 Set source in .coveragerc.
This should make codecov.io pick the right source files up too.
2015-10-23 19:14:46 +02:00
Florian Bruhin 9e6bcb97ca Output coverage to coverage.xml.
This avoids https://bitbucket.org/ned/coveragepy/issues/400/
2015-08-31 07:41:06 +02:00
Florian Bruhin 409b32122e Don't generate HTML coverage by default. 2015-08-08 22:55:13 +02:00
Florian Bruhin 3179455e69 Reorganize tox.ini.
- The environment to run unittests is now called py34 as that's the common
  thing used, and will also allow us to run the tests with Python 3.5.
- The default tests now also run coverage.py and do a coverage check (on
  Linux).
- The smoke tests are now part of the default environment.
2015-08-08 22:33:29 +02:00
Florian Bruhin 6d879bbca3 Exclude resources.py from coverage. 2015-05-25 01:38:17 +02:00
Florian Bruhin 96090b86fd tox: Use pytest-cov for coverage. 2015-03-30 23:36:27 +02:00
Florian Bruhin a46d36b3b0 Add some files to omit in .coveragerc. 2015-03-05 07:40:59 +01:00
Florian Bruhin 048823650c Add .coveragerc. 2015-03-04 23:35:59 +01:00