Testing Guidelines#

Running Tests#

# Run all tests
./scripts/test.sh

# Run fast tests only
pytest tests/ -k "not slow"

# Run with coverage
pytest tests/ --cov=psipose --cov-report=html

Sklearn Compatibility#

All estimators must pass check_estimator:

from sklearn.utils.estimator_checks import check_estimator
from psipose.estimators import VQCClassifier

for estimator, check in check_estimator(VQCClassifier()):
    check(estimator)