Execute tests with smart filtering and reporting.
Executes tests with smart filtering, coverage reporting, and watch mode support.
/plugin marketplace add varaku1012/aditi.code/plugin install code-quality@aditi-code-pluginsExecute tests with smart filtering and reporting.
/test-run # Run all tests
/test-run tests/unit/ # Run specific directory
/test-run test_pipeline # Run matching pattern
/test-run --failed # Re-run failed tests only
/test-run --watch # Watch mode
pytest tests/ -v --tb=short
pytest tests/ --cov=src --cov-report=term-missing
pytest tests/ -n auto
pytest tests/ --lf
pytest tests/unit/ -v
pytest tests/integration/ -v -m integration
pytest tests/e2e/ -v -m e2e
======================== test session starts ========================
platform linux -- Python 3.12.0, pytest-8.0.0
collected 156 items
tests/unit/test_character_extractor.py ...... [ 4%]
tests/unit/test_storyboard_artist.py ........ [ 10%]
tests/unit/test_video_generator.py ..... [ 14%]
tests/integration/test_pipeline.py ..... [ 17%]
...
====================== 152 passed, 4 skipped ======================
Duration: 45.2s
Coverage: 78%
Automatically re-run tests on file changes:
pytest-watch tests/ -- -v --tb=short
Shows:
Filter tests by marker:
pytest -m "not slow" # Skip slow tests
pytest -m "api" # Only API tests
pytest -m "not integration" # Skip integration
Define markers in pytest.ini:
[pytest]
markers =
slow: marks tests as slow
integration: integration tests
api: API tests
e2e: end-to-end tests