Python 3.x 如何从html报告中删除跳过的测试

Python 3.x 如何从html报告中删除跳过的测试,python-3.x,testing,automation,pytest,qa,Python 3.x,Testing,Automation,Pytest,Qa,我正在使用pytest实现自动化。我有这么多的测试用例,有一个像下面这样跳过的测试用例 def test_step(index, description): """ Logs the start of a test step. """ # code for print log 现在,当执行任何测试文件并生成报告时,该测试步骤也被认为是报表中跳过的测试用例。 如何从html报告中删除跳过的测试用例???通过使用此选项,我

我正在使用pytest实现自动化。我有这么多的测试用例,有一个像下面这样跳过的测试用例

def test_step(index, description):
"""
    Logs the start of a test step.
"""
    # code for print log

现在,当执行任何测试文件并生成报告时,该测试步骤也被认为是报表中跳过的测试用例。


如何从html报告中删除跳过的测试用例???

通过使用此选项,我可以忽略html报告中跳过的测试

def pytest_html_results_table_row(report, cells):
    if report.skipped:
      del cells[:]