Skip to main content

GitLab Reporter

GitLab Reporter is a Vedro plugin that enhances the readability and navigability of your test reports. By utilizing GitLab's collapsible sections, it provides a more organized and efficient way to review your reports.

The plugin allows you to collapse different elements of your reports, such as steps, variables, or the test scope, making it easier to manage and comprehend the information.

Installation

For a quick installation, you can use a plugin manager like so:

$ vedro plugin install vedro-gitlab-reporter

How to Use GitLab Reporter

After the installation, all you need to do is run your Vedro tests with the GitLab Reporter as follows:

$ vedro run -r gitlab --gitlab-collapsable {steps,vars,scope}

In the command above, the {steps, vars, scope} parameters dictate what elements the plugin should collapse in your report. Each mode has its unique functionality; let's explore them in further detail.

Steps Mode

In the steps mode, exceptions in the report will be displayed while the steps are collapsed. This mode enhances the readability of your report by giving you the option to show or hide variables within each step.

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

Vars Mode

The vars mode operates differently. In this mode, the plugin will show both exceptions and step names while collapsing the variables. This mode provides greater control over the report details by allowing you to selectively show or hide variable values.

$ vedro run -r gitlab --gitlab-collapsable vars

Scope Mode

Alternatively, in the scope mode, exceptions and step names are displayed while the Scope is collapsed. This provides you with the flexibility to show or hide the test Scope within your report, allowing for a high-level overview of the test while retaining the option to delve into more detail when necessary.

$ vedro run -r gitlab --gitlab-collapsable scope