allure-framework / allure-js

Allure integrations for JavaScript test frameworks
https://allurereport.org/
Apache License 2.0
217 stars 112 forks source link

feat(commons): add logStep Runtime API #1043

Closed baev closed 5 days ago

baev commented 6 days ago

Context

import { logStep, type Status } from "allure-js-commons";

// and the usage
await logStep("passed log step");

await logStep("failed log step", Status.FAILED);

await logStep("broken log step with error", Status.BROKEN, new Error("additional error details"));

Checklist