Files
Shadowwalker 9a1377fbba Add testing guide to TESTING.md
Added a comprehensive testing guide including instructions for running tests, coverage requirements, code quality checks, and pre-commit hooks.
2025-12-23 06:38:36 +00:00

633 B

Testing Guide

Running Tests Locally

# Install dependencies
pip install -r requirements.txt

# Run all tests with coverage
pytest --cov=. --cov-report=html

# Run specific test file
pytest tests/test_crypto.py

# Run with verbose output
pytest -v

Coverage Requirements

  • Minimum coverage: 70%
  • View coverage report: coverage report
  • Generate HTML coverage report: coverage html

Code Quality

# Run linter
flake8 . --max-line-length=127

# Format code
black .

# Security scan
bandit -r .

Pre-commit Hooks

pip install pre-commit
pre-commit install
pre-commit run --all-files