单项选择题
在使用PyTest进行单元测试时,下列哪种方式可以标识一个测试函数()
A.使用test 装饰器
B.使用pytest.mark.test 标记
C.使用def test_开头的函数名
D.使用def test()的函数名
点击查看答案&解析
相关考题
-
单项选择题
以下哪个选项可以在PyTest中设置测试用例执行的顺序()
A.使用pytest.mark.parametrize
B.使用pytest.mark.dependency
C.使用pytest.mark.xfail
D.无法设置测试用例执行的顺序 -
单项选择题
在Pytest中,哪个插件用于生成测试覆盖率报告()
A.pytest-coverage
B.pytest-html
C.pytest-xdist
D.pytest-flask -
单项选择题
在Pytest中哪个命令用于生成测试报告()
A.pytest report
B.pytest summary
C.pytest junitxml
D.pytest html
