Skip to content
Allure report logoAllure Report
Main Navigation ModulesDocumentationStarter Project

English

Español

English

Español

Appearance

Sidebar Navigation

Allure 3

Install & Upgrade

Install Allure

Upgrade Allure

Configure

Create Reports

How to generate a report

How to view a report

Improving readability of your test reports

Improving navigation in your test report

Reading Allure charts

Migrate from Allure 2

Allure 2

Install & Upgrade

Install for Windows

Install for macOS

Install for Linux

Install for Node.js

Upgrade Allure

Create Reports

How to generate a report

How to view a report

Improving readability of your test reports

Improving navigation in your test report

Features

Test steps

Attachments

Test statuses

Sorting and filtering

Environments

Multistage Builds

Categories

Visual analytics

Test stability analysis

History and retries

Quality Gate

Global Errors and Attachments

Timeline

Export to CSV

Export metrics

Guides

JUnit 5 parametrization

JUnit 5 & Selenide: screenshots and attachments

JUnit 5 & Selenium: screenshots and attachments

Setting up JUnit 5 with GitHub Actions

Pytest parameterization

Pytest & Selenium: screenshots and attachments

Pytest & Playwright: screenshots and attachments

Pytest & Playwright: videos

Playwright parameterization

Publishing Reports to GitHub Pages

Allure Report 3: XCResults Reader

How it works

Overview

Glossary

Test result file

Container file

Categories file

Environment file

Executor file

History files

Test Identifiers

Integrations

Azure DevOps

Bamboo

GitHub Action

Jenkins

JetBrains IDEs

TeamCity

Visual Studio Code

Frameworks

Behat

Getting started

Configuration

Reference

Behave

Getting started

Configuration

Reference

Codeception

Getting started

Configuration

Reference

CodeceptJS

Getting started

Configuration

Reference

Cucumber.js

Getting started

Configuration

Reference

Cucumber-JVM

Getting started

Configuration

Reference

Cucumber.rb

Getting started

Configuration

Reference

Cypress

Getting started

Configuration

Reference

Jasmine

Getting started

Configuration

Reference

JBehave

Getting started

Configuration

Reference

Jest

Getting started

Configuration

Reference

JUnit 4

Getting started

Configuration

Reference

JUnit 5

Getting started

Configuration

Reference

Mocha

Getting started

Configuration

Reference

Newman

Getting started

Configuration

Reference

NUnit

Getting started

Configuration

Reference

PHPUnit

Getting started

Configuration

Reference

Playwright

Getting started

Configuration

Reference

pytest

Getting started

Configuration

Reference

Pytest-BDD

Getting started

Configuration

Reference

Reqnroll

Getting started

Configuration

Reference

REST Assured

Getting started

Configuration

Robot Framework

Getting started

Configuration

Reference

Rust Cargo Test

Getting started

Configuration

Reference

RSpec

Getting started

Configuration

Reference

SpecFlow

Getting started

Configuration

Reference

Spock

Getting started

Configuration

Reference

TestNG

Getting started

Configuration

Reference

Vitest

Getting started

Configuration

Reference

WebdriverIO

Getting started

Configuration

Reference

xUnit.net

Getting started

Configuration

Reference

On this page

Rust Cargo Test configuration ​

The allure-cargotest integration is configured through environment variables.

ALLURE_RESULTS_DIR ​

Overrides the default directory where #[allure_test] writes Allure results.

When unset, allure-cargotest uses target/allure-results.

bash
ALLURE_RESULTS_DIR=./allure-results cargo test

ALLURE_HOST_NAME ​

Overrides the host label that allure-cargotest adds automatically.

If this variable is not set, the adapter tries to detect the host name from the current machine.

bash
ALLURE_HOST_NAME=ci-linux-01 cargo test

ALLURE_THREAD_NAME ​

Overrides the thread label that allure-cargotest adds automatically.

If this variable is not set, the adapter uses the current thread name or thread ID.

bash
ALLURE_THREAD_NAME=worker-1 cargo test

ALLURELABEL* ​

Adds global labels to every test result.

Any environment variable whose name starts with ALLURE_LABEL_ becomes an Allure label. For example:

bash
ALLURE_LABEL_epic="Web interface" \
ALLURE_LABEL_owner="QA Team" \
cargo test

This applies the epic and owner labels to every test in the run.

allure.label.* ​

Adds global labels using the alternative naming scheme that some CI tools already use.

Any environment variable whose name starts with allure.label. is treated the same way as ALLURE_LABEL_*.

bash
allure.label.layer=e2e cargo test

ALLURE_TESTPLAN_PATH ​

Points to a JSON file that defines which tests should run.

The file uses the standard Allure test plan shape:

json
{
  "version": "1.0",
  "tests": [{ "id": "AUTH-1" }, { "selector": "auth::tests::login_works" }]
}

Run the tests with:

bash
ALLURE_TESTPLAN_PATH=./testplan.json cargo test

Selection works as follows:

  • entries with id match tests that expose an Allure ID, for example via #[allure_test(id = "AUTH-1")],
  • entries with selector match the full Rust test name, including its module path.

If ALLURE_TESTPLAN_PATH is unset, the file does not exist, or the JSON is malformed, allure-cargotest skips filtering and runs the tests normally.

Automatic labels added by allure-cargotest ​

When you use #[allure_test] or CargoTestReporter, allure-cargotest adds a few labels automatically:

  • language = rust
  • framework = cargo-test
  • host
  • thread

It also derives suite labels from the Rust module path:

  • a single module segment becomes suite,
  • two segments become parentSuite and suite,
  • three or more segments become parentSuite, suite, and subSuite.

Explicit calls to allure.parent_suite(...), allure.suite(...), or allure.sub_suite(...) override the automatically derived labels with the same name.

Pager
Previous pageGetting started
Next pageReference
Powered by

Subscribe to our newsletter

Get product news you actually need, no spam.

Subscribe
Allure TestOps
  • Overview
  • Why choose us
  • Cloud
  • Self-hosted
  • Success Stories
Company
  • Documentation
  • Blog
  • About us
  • Contact
  • Events
© 2026 Qameta Software Inc. All rights reserved.