starting and stopping browsers is by default slow so we need to do it separately, isolated, and in parallel, and then use a resource pool for the main tests.
please create test_process.py which only does three things:
open browser
getAllTargets (verify there is some targets, dont need specific verification)
close browser
you can parameterize it or create separate functions for different styles of opening
async with Browser()
browser = await Browser()
and change arguments if you like with pymark.parameterize
[ ] If the platform.system() is windows we need to test both Selector and Proactor loop (unforunately), but that can come later.
[x] See if you can have the tests/parameters executed in paralell
starting and stopping browsers is by default slow so we need to do it separately, isolated, and in parallel, and then use a resource pool for the main tests.
please create
test_process.py
which only does three things:you can parameterize it or create separate functions for different styles of opening
async with Browser()
browser = await Browser()
and change arguments if you like with
pymark.parameterize
[ ] If the platform.system() is windows we need to test both Selector and Proactor loop (unforunately), but that can come later.
[x] See if you can have the tests/parameters executed in paralell
[x] See if you can add a timeout to each one (4 seconds?) How to set a global timeout: https://stackoverflow.com/questions/43598985/how-can-i-set-a-default-per-test-timeout-in-pytest