Move some pytest options into pytest.ini

This is so that I can run `tox -- -n 8` to run the tests in parallel, or
`tox -- tests/checker/test_misc.py::TestMisc::test_html5` to run just a
single test, without having to repeat all the other options.

I haven't moved --cov=linkcheck because I don't want coverage results
when I'm limiting the test run to a single test (they just make the
interesting bit -- the test result itself -- scroll up).

I've also added -ra to the default option list because then several
tests fail, I'd like to see a list of their names in one place, not
spead out between the huge tracebacks.
This commit is contained in:
Marius Gedminas 2019-10-21 17:42:29 +03:00
parent 895dc016b9
commit 42c75b5ef9
2 changed files with 4 additions and 1 deletions

3
pytest.ini Normal file
View file

@ -0,0 +1,3 @@
[pytest]
testpaths = tests
addopts = -ra --tb=short

View file

@ -12,6 +12,6 @@ deps =
miniboa
biplist
commands =
py.test {posargs:--tb=short --cov=linkcheck tests}
pytest {posargs:--cov=linkcheck}
setenv =
LC_ALL=en_US.utf-8