Write the execution result of the case to the log
Project description
pytest-result-log
为了日志中记录每个用例的执行结果,业内提出了很多解决方法,比如在用例步骤中加入日志记录代码、定义后置运行的fixure,
但是这些方案有一个弊端:因-k未选中、skip跳过、fixture错误等原因,有真正没有执行的用例,是无法在日志记录结果的。
pytest-result-log是sanmu框架孵化的第三个pytest插件,
通过hook钩子的方式,可以准确判断所有类型的用例执行结果,并记录到日志文件中,效果如下
文档
联系作者
如果在使用过程中遇到什么问题,欢迎通过以下方式联系:
- Github:https://github.com/dongfangtianyu/pytest_result_log/issues/new
- WeiXin: python_sanmu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for pytest_result_log-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04fc30061297d395cda720f12bba0393701e6ba0cffadef847e829a110ee4f04 |
|
MD5 | 78b7acd7410e5b5ad454790a155c9be1 |
|
BLAKE2b-256 | 062de1454a0ceae0c8a28ad3b31a7e1bb281a43735760210c5129cee6149f1f0 |