Skip to content

Commit

Permalink
Expand the pytest configuration (httpie#1161)
Browse files Browse the repository at this point in the history
And rely on it to run tests.
  • Loading branch information
BoboTiG authored Sep 20, 2021
1 parent e2ba214 commit 529aa78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ venv:

test:
@echo $(H1)Running tests$(HEADER_EXTRA)$(H1END)
$(VENV_BIN)/python -m pytest $(COV) ./httpie $(COV) ./tests --doctest-modules --verbose ./httpie ./tests
$(VENV_BIN)/python -m pytest $(COV)
@echo


test-cover: COV=--cov
test-cover: COV=--cov=httpie --cov=tests
test-cover: HEADER_EXTRA=' (with coverage)'
test-cover: test

Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@

[tool:pytest]
# <https://docs.pytest.org/en/latest/customize.html>
norecursedirs = tests/fixtures .*
addopts = --tb=native --doctest-modules
testpaths = httpie tests
norecursedirs = tests/fixtures
addopts = --tb=native --doctest-modules --verbose
xfail_strict = True


[flake8]
Expand Down

0 comments on commit 529aa78

Please sign in to comment.