Complete the command to load the pytest-xdist plugin for parallel test execution.
pytest -p [1]The pytest-xdist plugin is loaded explicitly using 'pytest -p xdist'. Normally auto-loaded after installation, but this ensures parallel execution features like -n are available.
Complete the command to run tests in parallel using 4 CPUs with pytest-xdist.
pytest -n [1]The '-n' option followed by a number tells pytest-xdist how many CPUs to use. Using 4 runs tests in parallel on 4 CPUs.
Fix the error in the pytest command to enable parallel execution with pytest-xdist.
pytest --dist=loadscope [1] 3
The '-n' option specifies the number of parallel workers. The command needs '-n 3' to run tests in parallel with 3 workers.
Fill both blanks to create a pytest command that runs tests in parallel and stops after 2 failures.
pytest [1] 5 [2] 2
The '-n 5' runs tests on 5 parallel workers. The '--maxfail 2' stops the test run after 2 failures.
Fill all three blanks to write a pytest command that runs tests in parallel on 3 CPUs, stops after 1 failure, and runs only tests matching 'login'.
pytest [1] 3 [2] 1 [3] login
'-n 3' runs tests on 3 CPUs, '--maxfail 1' stops after 1 failure, and '-k login' runs tests matching 'login'.