diff --git a/tox.ini b/tox.ini index 613d7c5e93..6cb398df58 100644 --- a/tox.ini +++ b/tox.ini @@ -53,14 +53,14 @@ base = testenv, test description = Run unit tests with pytest labels = py38, py310, py311: tests, unit-tests -commands = pytest {tty:--color=yes} --cov --cov-report=xml:results/coverage-{env_name}.xml --junit-xml=results/test-results-{env_name}.xml {posargs:tests/unit} +commands = pytest {tty:--color=yes} --cov=snapcraft --cov-report=xml:results/coverage-{env_name}.xml --junit-xml=results/test-results-{env_name}.xml {posargs:tests/unit} [testenv:test-legacy-{py38,py39,py310,py311,py312}] base = testenv, test description = Run legacy tests with pytest labels = py38, py310, py311: tests, integration-tests -commands = pytest {tty:--color=yes} --cov --cov-report=xml:results/coverage-{env_name}.xml --junit-xml=results/test-results-{env_name}.xml {posargs:tests/legacy} +commands = pytest {tty:--color=yes} --cov=snapcraft_legacy --cov-report=xml:results/coverage-{env_name}.xml --junit-xml=results/test-results-{env_name}.xml {posargs:tests/legacy} [testenv:test-noreq] base = testenv @@ -71,7 +71,7 @@ extras = dev allowlist_externals = mkdir commands_pre = mkdir -p results commands = - pytest {tty:--color=yes} --cov --cov-report=xml:results/coverage-{env_name}.xml --junit-xml=results/test-results-{env_name}.xml tests/unit {posargs} + pytest {tty:--color=yes} --cov=snapcraft --cov-report=xml:results/coverage-{env_name}.xml --junit-xml=results/test-results-{env_name}.xml tests/unit {posargs} pytest {tty:--color=yes} --junit-xml=results/legacy-test-results-{env_name}.xml tests/legacy {posargs} [lint] # Standard linting configuration