【文件属性】:
文件名称:pytest-spec:库pytest-spec是一个pytest插件,用于显示测试执行输出,如SPECIFICATION
文件大小:1.14MB
文件格式:ZIP
更新时间:2021-02-06 08:12:05
python testing test spec pytest
pytest规范
库pytest-spec是一个pytest插件,用于显示测试执行输出,例如SPECIFICATION。
可用功能
格式化输出以使其看起来像规范。
按类和文件进行分组测试
失败,通过和跳过被标记和着色。
删除每个测试的test_和下划线。
可以使用文档字符串摘要代替测试名称。
支持基于功能,基于类的测试。
支持描述类似测试。
输出例子
组态
spec_header_format
您可以通过在指定来配置测试标头的:
[tool:pytest]
spec_header_format = {module_path}:
除了{path}和{class_n
【文件预览】:
pytest-spec-master
----.github()
--------workflows()
----LICENSE.txt(18KB)
----pytest_spec()
--------replacer.py(765B)
--------__init__.py(56B)
--------plugin.py(2KB)
--------patch.py(6KB)
----test()
--------test_results()
--------test_formats()
--------test_replacer.py(858B)
--------test_patch.py(7KB)
--------test_plugin.py(2KB)
----setup.cfg(174B)
----README.md(5KB)
----CHANGES.txt(1KB)
----docs()
--------output.png(79KB)
--------output.gif(1.06MB)
----.gitignore(254B)
----pyproject.toml(1KB)