Skip to content

Commit

Permalink
coverage report adding context to show what test function executed th…
Browse files Browse the repository at this point in the history
…e specific line of the code
  • Loading branch information
tadeubas committed Aug 23, 2024
1 parent 05e0ff7 commit 3c00857
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[html]
show_contexts = True
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ lint = ["lint-src", "lint-scripts"]
pylint.ref = "lint"

# test tasks
test = "pytest --cache-clear --cov src/krux --cov-report html ./tests"
test = "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
Expand Down

0 comments on commit 3c00857

Please sign in to comment.