[claude] Separate tox unit and integration environments (#933) #1131
Reference in New Issue
Block a user
Delete Branch "claude/issue-933"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #933
What changed
tox -e unitnow uses-m "unit and ..."to run only tests explicitly marked as unit tests. Previously it ran all non-excluded tests (including integration tests), making the two environments overlap.tox -e integrationalready used-m integrationcorrectly and is unchanged.How it works
tests/conftest_markers.pyauto-assigns@pytest.mark.unitto all tests in the main test dirs and@pytest.mark.integrationto tests undertests/infrastructure/andtests/integration/, so existing tests pick up the correct marker without changes.