Skip to main content

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钩子的方式,可以准确判断所有类型的用例执行结果,并记录到日志文件中,效果如下

文档

联系作者

如果在使用过程中遇到什么问题,欢迎通过以下方式联系:

Project details


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

pytest_result_log-1.0.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page