Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allure-hermione: no steps in report #906

Closed
dicrtarasov opened this issue Mar 12, 2024 · 2 comments
Closed

allure-hermione: no steps in report #906

dicrtarasov opened this issue Mar 12, 2024 · 2 comments
Assignees

Comments

@dicrtarasov
Copy link

Hermione 8.3.0
Hermione-Allure: 2.13.0

Previous bug report: #863

@epszaw Please, reopen bug, no changes inn version 2.13.0.

await browser.step(currentTest.id, "Some step", async () => {
    ...
});

Empty steps in json report.

telegram-cloud-photo-size-2-5440669287456036090-y

@baev baev changed the title No steps in report allure-hermione: no steps in report Mar 12, 2024
@epszaw
Copy link
Member

epszaw commented Mar 14, 2024

Hey there! Signatures of the Runtime API have changed.

To add step try to use following code, as documented here

import { allure } from "hermione-allure/runtime";

it("my test", async ({ browser, currentTest }) => {
  await allure(currentTest).step("Some step", async () => {
    
  });
});

@epszaw epszaw self-assigned this Mar 14, 2024
@dicrtarasov
Copy link
Author

@epszaw

[email protected]
[email protected]

import { allure } from 'hermione-allure/dist/runtime';

describe('Test', () => {
    it('Test', async ({ currentTest }) => {
        allure(currentTest).step('Test step', async () => {
            console.log('test');
        });
    });
});
TS2345: Argument of type 'Mocha.Test' is not assignable to parameter of type 'import("node_modules/hermione/build/src/test-reader/test-object/test").Test'.
Type 'Test' is missing the following properties from type 'Test': skipReason, disable, disabled, silentSkip, and 6 more.

@baev baev closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants