Skip to content

How to generate results with allure-js-commons version 3 from custom framework? #2610

Discussion options

You must be logged in to vote

Now, allure-js-commons is split into two parts: SKD and client. The SDK API is used to create new integrations. The client code can be run in any environment (including browsers). Allure relies on message bus abstraction, which should be implemented by each test runner.

So instead of AllureRuntime, there is now ReporterRuntime and TestRuntime. ReporterRuntime is the one you're looking for:

import { FileSystemWriter, ReporterRuntime } from "allure-js-commons/sdk/reporter";

const writer = new FileSystemWriter({ resultsDir: ".out/allure-results"});
const runtime = new ReporterRuntime({ writer });
const rootUuid = runtime.startTest({ name: "Some test name" });

// stepUuid can be undefined i…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iamkenos
Comment options

@joshden
Comment options

@iamkenos
Comment options

Answer selected by baev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants