seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.67k stars 929 forks source link

Speed up pytest collection by ignoring some folders #1751

Closed mdmintz closed 1 year ago

mdmintz commented 1 year ago

Speed up pytest collection by ignoring some folders

There's a norecursedirs option that can be placed inside a pytest.ini file. There, we can set folders to be ignored during pytest auto-collection.

Eg:

norecursedirs = .* build dist recordings temp

That should speed things up.

mdmintz commented 1 year ago

This was released in 4.13.0 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.13.0