An open API service indexing awesome lists of open source software.

https://github.com/vedro-universe/vedro-gitlab-reporter

GitLab reporter with collapsable sections for Vedro framework
https://github.com/vedro-universe/vedro-gitlab-reporter

gitlab vedro vedro-plugin

Last synced: 8 months ago
JSON representation

GitLab reporter with collapsable sections for Vedro framework

Awesome Lists containing this project

README

          

# 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

Quick

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

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

Manual

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
```

## Usage

### Run tests

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

## Documentation

`--gitlab-collapsable=`

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