Skip to content

Commit

Permalink
poetry task to ensure htmlcov files are always recreated
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeubas committed Aug 23, 2024
1 parent 3c00857 commit 71d8296
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ lint = ["lint-src", "lint-scripts"]
pylint.ref = "lint"

# test tasks
test = "pytest --cache-clear --cov src/krux --cov-report html ./tests --cov-context=test --cov-report term-missing"
test-clean = """python -c 'import shutil; shutil.rmtree("htmlcov")'"""
test-cov = "pytest --cache-clear --cov src/krux --cov-report html ./tests --cov-context=test --cov-report term-missing"
test-verbose = "pytest --cache-clear --cov src/krux --cov-report html --show-capture all --capture tee-sys -r A ./tests"
test-simple = "pytest --cache-clear ./tests"
# aliases
tests.ref = "test"
pytest.ref = "test"
tests = ["test-clean", "test-cov"]
test.ref = "tests"
pytest.ref = "tests"

# pre commit task (do formatting, linting and tests)
pre-commit = ["format", "lint", "i18n validate", "test-simple"]
Expand Down

0 comments on commit 71d8296

Please sign in to comment.