| name | run-integration-tests |
| description | Use when running integration tests in the mobster repository — requires docker compose, tests OCI registry interactions, cosign, syft, and TPA upload flows |
Run Integration Tests
Prerequisites
Integration tests require a running local registry and supporting services:
docker compose up -d
Check services are healthy before running tests:
docker compose ps
Commands
tox -e test-integration
tox -e test-integration -- -k name
tox -e test-integration -- -v
What integration tests cover
- OCI registry interactions (push/pull via
oras)
cosign signature verification flows
syft SBOM generation against real images
- TPA upload/download/delete against a local mock
These tests are excluded from unit test runs and coverage gates — they verify end-to-end flows, not individual functions.
Teardown
docker compose down
Common mistakes
- Running without
docker compose up -d first — tests will fail with connection errors, not a helpful message
- Running
tox -e test expecting integration tests to be included — they are not; use tox -e test-integration