Skip to content

Commit ed247f9

Browse files
acoleman2000mr-c
authored andcommitted
Always re-run unittests
Currently running `tox -e py310-unit` will only run the unit tests the first time the command is run. This is because `make coverage-report` (the command that tox runs for the unit tests) checks to see .coverage exists. However, .coverage is created the first time and not deleted so the tests will not be rerun. The simplest solution with the least amount of potential downstream issues would be to add a `--always-make` flag in the tox.ini file.
1 parent c446c4f commit ed247f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ setenv =
5252

5353
commands =
5454
py{36,37,38,39,310,311}-unit: python -m pip install -U pip setuptools wheel
55-
py{36,37,38,39,310,311}-unit: make coverage-report coverage.xml PYTEST_EXTRA="{posargs}"
55+
py{36,37,38,39,310,311}-unit: make --always-make coverage-report coverage.xml PYTEST_EXTRA="{posargs}"
5656
py{37,38,39,310,311}-bandit: bandit --recursive --exclude schema_salad/tests/ schema_salad
5757
py{36,37,38,39,310,311}-lint: make flake8
5858
py{36,37,38,39,310,311}-lint: make format-check

0 commit comments

Comments
 (0)