Skip to content

amaudy/2ndmarket

Repository files navigation

Run Test

Run all tests in the project

docker compose exec web pytest -v

Run tests with reused database (faster)

docker compose exec web pytest -v --reuse-db

Force database recreation

docker compose exec web pytest -v --reuse-db --create-db

Run all tests with coverage report

docker compose exec web pytest -v --cov

Run all tests with detailed HTML coverage report

docker compose exec web pytest -v --cov --cov-report=html

Run specific app tests

docker compose exec web pytest apps/listings/tests.py -v

Run specific test cases

docker compose exec web pytest apps/listings/tests.py -m edit_listing -v

Run with print output

docker compose exec web pytest apps/listings/tests.py -v -k "edit" -s

Run specific tests with coverage

docker compose exec web pytest apps/listings/tests.py -v -k "edit" --cov=apps.listings
docker compose exec web pytest apps/listings/tests.py -v -k "TestOrders"
ssh-keygen -t ed25519 -C "[email protected]" -f $(pwd)/deployment/id_ed25519

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published