New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pytest-result-log

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pytest-result-log

A pytest plugin that records the start, end, and result information of each use case in a log file

pipPyPI
Version
1.2.2
Maintainers
1

pytest-result-log

摘要

pytest-result-log是一个在日志文件中记录每个用例的开始、结束和结果信息的pytest插件。

预览

pytest-result-log是sanmu框架孵化的第三个pytest插件,

通过hook钩子的方式,可以准确判断所有类型的用例执行结果,并记录到日志文件中,效果如下

pytest-result.log

安装

执行命令

pip install pytest-result-log

启用

修改配置文件pyetst.ini

[pytest]

log_file = pytest.log
log_file_level = info
log_file_format   = %(levelname)-8s %(asctime)s [%(name)s:%(lineno)s]  : %(message)s
log_file_date_format  = %Y-%m-%d %H:%M:%S

文档

  • 专栏:《pytest-result-log》
  • pytest-result-log:把用例执行结果保存到日志的 pytest 插件
  • pytest-result-log:配置说明及示例

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts