Complete the code to run pytest from the command line.
pytest [1]The --help option shows help information about pytest commands.
Complete the command to run tests in a specific file named test_sample.py.
pytest [1]To run tests in a specific file, provide the exact filename to pytest.
Fix the error in the command to run pytest with verbose output.
pytest [1]The correct short option for verbose mode in pytest is -v.
Fill both blanks to run pytest and stop after first failure with detailed output.
pytest [1] [2]
--maxfail=1 instead of -x for stopping on failure.-v enables verbose output and -x stops after the first failure.
Fill all three blanks to run pytest on a directory tests, show detailed output, and stop after 2 failures.
pytest [1] [2] [3]
-x instead of --maxfail=2 to stop after two failures.Run tests in tests directory, verbose output with -v, and stop after 2 failures using --maxfail=2.
