Florian Bruhin
4fe3f8c471
Fix check_coverage.py tests with pytest 7.0
...
See https://github.com/pytest-dev/pytest/pull/8247
2021-07-06 10:20:43 +02:00
Florian Bruhin
413ce38abc
tests: Fix test_check_coverage with Python 3.10
2021-05-05 20:36:27 +02:00
Florian Bruhin
dc14d314c4
Remove confusing return
2021-04-09 16:55:23 +02:00
Florian Bruhin
ed3607fcf0
tests: Skip test_untested_branches for entire Python 3.10 alpha
2021-02-06 17:27:42 +01:00
Florian Bruhin
e5bbf1f6aa
tests: Skip broken check_coverage test for Python 3.10
...
See #6068
Probably https://github.com/nedbat/coveragepy/issues/1106
2021-01-26 21:00:44 +01:00
Florian Bruhin
1a4fff1a42
doc: Switch URLs to https
2021-01-26 15:19:01 +01:00
Florian Bruhin
222f1f19a1
Bump copyright years
...
Closes #6015
2021-01-20 20:06:19 +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
0a3d81ba25
tests: Disable xvfb in test_check_coverage
...
Looks like it raises a ByteWarning for some reason...
2020-07-29 11:28:39 +02:00
Florian Bruhin
13267033d0
tests: Make some more plugins optional
2020-07-29 11:26:30 +02:00
Florian Bruhin
a633bff120
tests: Check return status in test_check_coverage
2020-07-29 11:19:41 +02:00
Florian Bruhin
846adef211
tests: Remove unused import
2020-06-10 16:23:43 +02:00
Florian Bruhin
e7cdc03685
tests: Cleanups after pathlib migration in tests/unit/scripts/
2020-06-10 16:13:45 +02:00
Julin S
37e59112a5
Use tmpdir and pathlib
2020-06-03 13:45:08 +05:30
Florian Bruhin
9e4276db9b
Adjust copyrights for 2020
2020-01-04 18:21:17 +01:00
Florian Bruhin
6e0c17b510
Fix some typos
2019-08-01 18:24:47 +02:00
Jay Kamat
3e816f5f8b
Update copyright for 2019
2019-02-22 21:45:08 -08:00
Florian Bruhin
6f028e9ad0
Update copyright years
2018-02-05 12:19:50 +01:00
Ryan Farley
38b2d42b40
cleanup PYTEST_ADDOPTS for pytest subprocess
...
See https://github.com/qutebrowser/qutebrowser/pull/3349
2017-12-03 15:09:47 -06:00
Florian Bruhin
46cfd5353d
Use a pytest marker to fake an OS
2017-09-20 11:30:18 +02:00
Florian Bruhin
ef1c83862b
Use utils.is_* for platform checks everywhere
2017-09-20 11:10:24 +02:00
Florian Bruhin
4da9b8c495
check_coverage: Truncate long floats
2017-09-15 12:07:54 +02:00
Florian Bruhin
822623f2ed
Finally update copyrights...
2017-05-09 21:37:03 +02:00
Florian Bruhin
8052249b1b
Make check_coverage.py work with coverage 4.4
...
With coverage 4.4, the source name (qutebrowser/) is not added to the filename
anymore. To adjust for that, we remove qutebrowser/ from all paths, and also
make sure to remove it from what coverage returns (in case someone is running an
older version).
2017-05-09 06:13:35 +02:00
Florian Bruhin
ca4f249c30
Use three-argument form of monkeypatch.*attr
2017-03-01 11:33:41 +01:00
Florian Bruhin
45ce430774
Fix test_check_coverage
2016-09-26 08:11:45 +02:00
Florian Bruhin
2da827462e
Add a test to make sure check_coverage files exist
2016-09-07 11:37:21 +02:00
Florian Bruhin
a5f2ac5f03
Adjust copyright years.
2016-01-04 07:12:39 +01:00
Florian Bruhin
9607fae935
Skip check_coverage.py with --lf.
2015-11-13 22:43:12 +01:00
Florian Bruhin
3680f01576
Switch to pytest 2.8.
...
Closes #1077 .
There were two issues:
- Paths for coverage.py suddenly were absolute instead of relative, so we strip
the common base part if that happens.
/home/florian/proj/qutebrowser/git/qutebrowser/browser/cookies.py has 100%
coverage but is not in perfect_files!
/home/florian/proj/qutebrowser/git/qutebrowser/browser/http.py has 100%
coverage but is not in perfect_files!
[...]
- There was an io.UnsupportedOperationError in test_check_coverage.py because
of pytest-faulthandler, so we just don't load that in the subprocess.
2015-11-11 20:57:47 +01:00
Florian Bruhin
6f07eb562f
Revert "Don't use faulthandler plugin for check_coverage."
...
This reverts commit 497fba5667 .
2015-10-28 08:22:41 +01:00
Florian Bruhin
497fba5667
Don't use faulthandler plugin for check_coverage.
2015-10-28 07:45:34 +01:00
Florian Bruhin
f4fdcbdd71
Add a --check-all to check_coverage.py.
2015-10-04 20:35:24 +02:00
Florian Bruhin
54ae1582af
Make check_coverage work when called with a file.
2015-10-04 19:36:26 +02:00
Florian Bruhin
55efd1358b
Work around coverage.py bug in test_check_coverage.
...
Fixes #981 .
See https://bitbucket.org/ned/coveragepy/issues/422/
2015-10-04 18:33:37 +02:00
Florian Bruhin
311ae78bc3
Adjust check_coverage.py for coverage 4.0.
2015-09-21 07:42:10 +02:00
Florian Bruhin
3e255eae64
Skip some tests when frozen.
2015-08-26 20:29:56 +02:00
Florian Bruhin
cb0e92b4e8
Only run test_check_coverage.py on Linux.
2015-08-26 20:20:08 +02:00
Florian Bruhin
2750c6ab5a
Make check_coverage.py more testable and add tests.
2015-08-26 20:08:40 +02:00