單項選擇題在Pytest中哪個命令用于生成測試報告()

A.pytest report
B.pytest summary
C.pytest junitxml
D.pytest html


你可能感興趣的試題

1.單項選擇題在Pytest中,哪個函數(shù)用于在測試用例運行之前執(zhí)行一次性設(shè)置()

A.setup()
B.before_test()
C.teardown()
D.setup_method()

2.單項選擇題在Pytest中,哪個斷言用于比較兩個值是否相等()

A.assert
B.assertEqual
C.assertAlmostEqual
D.assertNotEqual

3.單項選擇題在PyTest中,測試文件應(yīng)該以什么為前綴()

A.test
B.py
C.testfile
D.testcase

4.單項選擇題在PyTest中,如何使用斷言()

A.使用assert語句
B.使用check()函數(shù)
C.使用verify()函數(shù)
D.使用expect()函數(shù)

5.單項選擇題在PyTest中,如何使用fixture()

A.使用pytest.mark.fixture 標注
B.使用pytest.fixture 標注
C.使用pytest.use_fixture 標注
D.使用pytest.testfixture 標注