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

Agent Mode

Test steps

Attachments

Test statuses

Assertion diffs

Sorting and filtering

Environments

Multistage Builds

Categories

Visual analytics

Test stability analysis

History and retries

Self-hosted storage

Quality Gate

Resolutions

Global Errors and Attachments

Timeline

Performance Metrics

Export to CSV

Export metrics

Guides

Migrating to Allure Java 3

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

Deploying Self-Hosted Storage with Docker

Deploying Self-Hosted Storage on Cloudflare Workers

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

Gradle

Jenkins

JetBrains IDEs

Maven

Slack

TeamCity

Visual Studio Code

Xray

Frameworks

AVA

Getting started

Configuration

Reference

Axios

Getting started

Configuration

Reference

Behat

Getting started

Configuration

Reference

Behave

Getting started

Configuration

Reference

Bun

Getting started

Configuration

Reference

Chai

Getting started

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

Dart and Flutter

Getting started

Configuration

Reference

Diesel

Getting started

Configuration

Reference

Fetch

Getting started

Configuration

Reference

Go

Getting started

Configuration

Reference

gRPC

Getting started

Configuration

Jasmine

Getting started

Configuration

Reference

Java HTTP Client

Getting started

JBehave

Getting started

Configuration

Reference

Jest

Getting started

Configuration

Reference

JUnit 4

Getting started

Configuration

Reference

JUnit Jupiter

Getting started

Configuration

Reference

Kotlin

Getting started

Reference

Mocha

Getting started

Configuration

Reference

Newman

Getting started

Configuration

Reference

Node.js Test Runner

Getting started

Configuration

Reference

NUnit

Getting started

Configuration

Reference

OkHttp

Getting started

PHPUnit

Getting started

Configuration

Reference

Playwright

Getting started

Configuration

Reference

Playwright Java

Getting started

Configuration

Reference

pytest

Getting started

Configuration

Reference

Pytest-BDD

Getting started

Configuration

Reference

Reqnroll

Getting started

Configuration

Reference

Reqwest

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

Selenide

Getting started

Configuration

Reference

Selenium BiDi

Getting started

Configuration

Reference

SpecFlow

Getting started

Configuration

Reference

Spock

Getting started

Configuration

Reference

TestCafe

Getting started

Configuration

Reference

TestNG

Getting started

Configuration

Reference

Tinybench

Getting started

Reference

Vitest

Getting started

Configuration

Reference

WebdriverIO

Getting started

Configuration

Reference

xUnit.net

Getting started

Configuration

Reference

On this page

Getting started with Allure Kotlin extensions ​

Allure Kotlin extensions latest version

The Allure Kotlin extensions let you add steps, metadata and attachments to your Allure Report test reports with a Kotlin-friendly API: top-level functions with named arguments and default values, steps that return values, and steps that work with coroutines.

The extensions don't run your tests. They work together with an Allure Java integration for your test framework, such as Allure JUnit Jupiter or Allure TestNG, and call the same Runtime API that Java tests use. The original Allure class stays available.

There are two modules:

  • allure-kotlin-extensions - the Kotlin API for steps, metadata, attachments and global errors.
  • allure-kotlin-coroutines - steps that can suspend, and a way to pass the current test to coroutines that run on other threads. This module includes allure-kotlin-extensions.

The Allure Kotlin extensions are available in Allure Java 3.0.0 and newer. They require Java 17 or newer and Kotlin 2.3 or newer.

INFO

The Allure Kotlin extensions are a part of Allure Java. They are not related to Allure Kotlin, a separate project for Android tests.

Setting up ​

  1. Make sure you have the Allure Report integration enabled for the test framework you use.

    See the instructions in the integration's documentation in Frameworks.

  2. Add the Allure Kotlin extensions to your project's dependencies. If your tests use coroutines, use allure-kotlin-coroutines instead of allure-kotlin-extensions, to get suspending steps and to keep the steps of coroutines in the right test.

    xml
    <!-- Define the version of Allure you want to use via the allure.version property -->
    <properties>
        <allure.version>VERSION</allure.version>
    </properties>
    
    <!-- Add allure-bom to dependency management to ensure correct versions of all the dependencies are used -->
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>io.qameta.allure</groupId>
                <artifactId>allure-bom</artifactId>
                <version>${allure.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    
    <dependencies>
        <dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-kotlin-extensions</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    kts
    val allureVersion = "VERSION"
    
    dependencies {
        testImplementation(platform("io.qameta.allure:allure-bom:$allureVersion"))
        testImplementation("io.qameta.allure:allure-kotlin-extensions")
    }
    groovy
    def allureVersion = "VERSION"
    
    dependencies {
        testImplementation platform("io.qameta.allure:allure-bom:$allureVersion")
        testImplementation "io.qameta.allure:allure-kotlin-extensions"
    }
  3. Import the functions you need from io.qameta.allure.kotlin.extensions, and use them in your tests.

    The example below shows the Allure Kotlin extensions in a JUnit Jupiter test.

    kotlin
    import io.qameta.allure.kotlin.extensions.attachment
    import io.qameta.allure.kotlin.extensions.feature
    import io.qameta.allure.kotlin.extensions.parameter
    import io.qameta.allure.kotlin.extensions.step
    import org.junit.jupiter.api.Assertions.assertEquals
    import org.junit.jupiter.api.Test
    
    class TestOrders {
    
        @Test
        fun testCreateOrder() {
            feature("Orders")
            val region = parameter("region", "eu-west")
    
            val orderId = step("Create order") {
                val id = createOrder(region)
                name("Create order $id")
                id
            }
    
            step("Check the order status") {
                val status = loadStatus(orderId)
                attachment(name = "status", content = status)
                assertEquals("created", status)
            }
        }
    }

    See the reference for all available functions.

  4. Run your tests and generate a test report the same way as you would do usually.

Pager
Previous pageReference
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.
A Markdown version of this page is available at /docs/kotlin.md