semvec/pypi-packages huggingface dataset:
pytest-result-log 1.3.0
A pytest plugin that records the start, end, and result information of each use case in a log file
License: Apache-2.0
Requires Python: >=3.10.6

# pytest-result-log



## 摘要

pytest-result-log是一个在日志文件中记录每个用例的开始、结束和结果信息的pytest插件。



## 预览


pytest-result-log是sanmu框架孵化的第三个pytest插件，

通过hook钩子的方式，可以准确判断所有类型的用例执行结果，并记录到日志文件中，效果如下

![pytest-result.log](images/pytest-result.log.jpg)



## 安装

执行命令

```
pip install pytest-result-log
```





## 启用



修改配置文件`pyetst.ini`

```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》](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzkxMDIyODUwOA==&action=getalbum&album_id=2742836452161503235&scene=173&from_msgid=2247483961&from_itemidx=1&count=3&nolastread=1#wechat_redirect)
- [pytest-result-log：把用例执行结果保存到日志的 pytest 插件](https://mp.weixin.qq.com/s/cp3rdKJb0Eglz0jIhZ6ZHw)
- [pytest-result-log：配置说明及示例](https://mp.weixin.qq.com/s/f90fcj54pKvebnBahIlIog)
vedro-gitlab-reporter 2.1.4
GitLab reporter with collapsable sections for Vedro framework
License: Apache-2.0
Requires Python: >=3.7

# Vedro GitLab Reporter

[![Codecov](https://img.shields.io/codecov/c/github/vedro-universe/vedro-gitlab-reporter/master.svg?style=flat-square)](https://codecov.io/gh/vedro-universe/vedro-gitlab-reporter)
[![PyPI](https://img.shields.io/pypi/v/vedro-gitlab-reporter.svg?style=flat-square)](https://pypi.python.org/pypi/vedro-gitlab-reporter/)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/vedro-gitlab-reporter?style=flat-square)](https://pypi.python.org/pypi/vedro-gitlab-reporter/)
[![Python Version](https://img.shields.io/pypi/pyversions/vedro-gitlab-reporter.svg?style=flat-square)](https://pypi.python.org/pypi/vedro-gitlab-reporter/)

GitLab (>=12.0) reporter with [collapsable sections](https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-sections) for [Vedro](https://vedro.io/) framework

## Installation

<details open>
<summary>Quick</summary>
<p>

For a quick installation, you can use a plugin manager as follows:

```shell
$ vedro plugin install vedro-gitlab-reporter
```

</p>
</details>

<details>
<summary>Manual</summary>
<p>

To install manually, follow these steps:

1. Install the package using pip:

```shell
$ pip3 install vedro-gitlab-reporter
```

2. Next, activate the plugin in your `vedro.cfg.py` configuration file:

```python
# ./vedro.cfg.py
import vedro
import vedro_gitlab_reporter

class Config(vedro.Config):

    class Plugins(vedro.Config.Plugins):

        class GitlabReporter(vedro_gitlab_reporter.GitlabReporter):
            enabled = True
```

</p>
</details>

## Usage

### Run tests

```shell
$ vedro run -r gitlab --gitlab-collapsable steps
```

## Documentation

`--gitlab-collapsable=<mode>`

| Mode  | Description                                     |
| ----- | ----------------------------------------------- |
| steps | Show exception and collapsable steps            |
| vars  | Show exception, steps and collapsable variables |
| scope | Show exception, steps and collapsable scope     |