test: improve tox config

This commit is contained in:
Karim shoair
2025-11-17 02:50:16 +02:00
parent 5685e4930c
commit da5c180329
+5
View File
@@ -15,6 +15,11 @@ deps =
camoufox
-r{toxinidir}/tests/requirements.txt
extras = ai,shell
commands_pre =
# Install browsers in the tox virtual environment
python -m playwright install chromium
python -m playwright install-deps chromium firefox
python -m camoufox fetch --browserforge
commands =
# Run browser tests without parallelization (avoid browser conflicts)
pytest --cov=scrapling --cov-report=xml -k "DynamicFetcher or StealthyFetcher" --verbose