cd sdk-python
pip install -e ".[dev]"
playwright install chromium# From sdk-python directory
pytest tests/
# With verbose output
pytest tests/ -v
# With even more detail
pytest tests/ -vv# Run only inspector tests
pytest tests/test_inspector.py
# Run only recorder tests
pytest tests/test_recorder.py
# Run only generator tests
pytest tests/test_generator.py
# Run only smart selector tests
pytest tests/test_smart_selector.py
# Run only snapshot tests
pytest tests/test_snapshot.py
# Run only query tests
pytest tests/test_query.py
# Run only action tests
pytest tests/test_actions.py
# Run only wait tests
pytest tests/test_wait.py
# Run only spec validation tests
pytest tests/test_spec_validation.py# Run a specific test function
pytest tests/test_inspector.py::test_inspector_start_stop
# Run multiple specific tests
pytest tests/test_recorder.py::test_recorder_click tests/test_recorder.py::test_recorder_type# Show print statements
pytest tests/ -s
# Show print statements + verbose
pytest tests/ -sv
# Show local variables on failure
pytest tests/ -l# Install pytest-xdist first: pip install pytest-xdist
pytest tests/ -n auto# Install pytest-cov first: pip install pytest-cov
pytest tests/ --cov=sentience --cov-report=html
# View coverage report
open htmlcov/index.html# Stop on first failure
pytest tests/ -x
# Stop after N failures
pytest tests/ --maxfail=3
# Run only tests matching a pattern
pytest tests/ -k "inspector"
# Run tests and show slowest 10
pytest tests/ --durations=10
# Run tests with markers (if defined)
pytest tests/ -m "not slow"cd sdk-python
pytest tests/ -v --tb=shortcd sdk-python
pytest tests/test_snapshot.py::test_snapshot_basic -vplaywright install chromiumMake sure the extension is built:
cd ../sentience-chrome
./build.shMake sure the package is installed in development mode:
pip install -e ".[dev]"