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.45k stars 908 forks source link

pytest 8.2.2 causes issues when `--reruns` is used #2832

Closed mdmintz closed 3 weeks ago

mdmintz commented 3 weeks ago

pytest 8.2.2 causes issues when --reruns is used

I opened a ticket with them: https://github.com/pytest-dev/pytest/issues/12424

This means that reruns won't happen, and the Dashboard will get confused (a failure will appear not just once, but also each time there is a rerun that happens).

This issue appeared in seleniumbase 4.27.2, which upgraded to use pytest 8.2.2.

Probably the best thing to do for now is downgrade pytest in the dependencies until pytest fixes the issue. (Or maybe they'll say that pytest-rerunfailures needs to be fixed.)

mdmintz commented 3 weeks ago

This was resolved by downgrading pytest to 8.2.1 in seleniumbase 4.27.3 - https://github.com/seleniumbase/SeleniumBase/releases/tag/v4.27.3