Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

test: improve tox config

Karim shoairda5c1803296c
diff --git a/tox.ini b/tox.ini
index 758939f..0109863 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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