Skip to content

希望可以去掉强制命名,文件需要以test开头 #10

@lincanyi

Description

@lincanyi

Traceback (most recent call last):
File "", line 1, in
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/lincanyi/Project/interface-tools/lxtx/case/debugCase.py", line 13, in
runner.run_test(report_title='接口自动化测试报告')
File "/Users/lincanyi/Project/interface-tools/venv/lib/python3.8/site-packages/utx-0.0.7-py3.8.egg/utx/runner.py", line 222, in run_test
_TestRunner(report_dir=report_dir, report_title=report_title).run(suite)
File "/Users/lincanyi/Project/interface-tools/venv/lib/python3.8/site-packages/utx-0.0.7-py3.8.egg/utx/runner.py", line 118, in run
style_1.build_report(file_path, result_data)
File "/Users/lincanyi/Project/interface-tools/venv/lib/python3.8/site-packages/utx-0.0.7-py3.8.egg/utx/report/style_1.py", line 377, in build_report
test_pass_per="{:.2%}".format(data['testPass'] / data['testAll']),
ZeroDivisionError: division by zero

py文件不以开头test开头会报0错误

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions