📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
5.17k
stars
960
forks
source link
Dashboard link missing at the start of pytest runs in multithreaded mode #1529
Closed
mdmintz closed 2 years ago
Dashboard link missing at the start of pytest runs in multithreaded mode
Normally, when running tests with
--dashboard
set, you'll see the link to the dashboard at the start of the test run. Eg:However, if running tests in multithreaded mode (
-n 4
, for example) then the Dashboard link is missing:And the reason this happens is because multithreaded mode captures the output of standard print statements by default.
The fix would involve swapping
print()
statements withsys.stderr.write()
, which works in multithreaded mode.