Skip to content

Commit

Permalink
Added pytest.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
Temidayo32 committed Feb 19, 2025
1 parent 16cd290 commit cd60c07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export GECKODRIVER_LOG = $(shell pwd)/results/geckodriver.log

BLACK_CHECK = black -l 90 --check --diff .
BLACK_FIX = black -l 90 .
MINIMUM_COVERAGE = 95
FOXPUPPET_TESTS = pytest -vvv --driver Firefox --cov --cov-fail-under=$(MINIMUM_COVERAGE) --html results/report.html

check: install_poetry lint test

Expand All @@ -18,7 +16,7 @@ install_poetry:
curl -sSL https://install.python-poetry.org | python3 -

test: install_dependencies
poetry run $(FOXPUPPET_TESTS)
poetry run pytest

lint: install_dependencies
poetry run $(BLACK_CHECK)
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
addopts = -vvv --driver Firefox --cov --cov-fail-under=95 --html=results/report.html --self-contained-html
testpaths = tests

0 comments on commit cd60c07

Please sign in to comment.