Complete the code to run pytest with coverage reporting.
pytest --cov=[1]The --cov option specifies the module or package to measure coverage for. Here, my_module is the code being tested.
Complete the command to generate a coverage report in the terminal.
pytest --cov=my_module --cov-report=[1]The term option shows the coverage report directly in the terminal after tests run.
Fix the error in the command to generate an HTML coverage report.
pytest --cov=my_module --cov-report=[1]The html option generates a detailed coverage report as HTML files you can open in a browser.
Fill both blanks to run pytest with coverage for app and generate both terminal and XML reports.
pytest --cov=[1] --cov-report=[2] --cov-report=xml
Specify the module app for coverage and use term to show the report in the terminal, plus xml for an XML file.
Fill all three blanks to run pytest with coverage for service, generate an HTML report, and fail if coverage is below 80%.
pytest --cov=[1] --cov-report=[2] --cov-fail-under=[3]
Use service as the module, html for the report format, and 80 to set the minimum coverage percentage required to pass.