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

[feature request] Add 'it.concurrent' async support? #72

Open
ccckblaze opened this issue Feb 18, 2021 · 1 comment
Open

[feature request] Add 'it.concurrent' async support? #72

ccckblaze opened this issue Feb 18, 2021 · 1 comment

Comments

@ccckblaze
Copy link

I am trying to use both concurrent and reporter methods, then it throws an exception
After some research, found out that the specStarted method executed after the async function.

so, I have to use concurrent without reporter invoked, or quit using concurrent.

Help needed, thanks

code example:

it.concurrent("create api", async () => {
    reporter.description("create api");

    reporter.startStep("check");
    expect(true).toBeTruthy();
    report.endStep();
});
    TypeError: Cannot read property 'currentTest' of undefined

      3 |
      4 | it.concurrent("create api", async () => {
    > 5 |     reporter.description("create api");
        |              ^
      6 |
      7 |     reporter.startStep("check");
      8 |     expect(true).toBeTruthy();

      at Allure.Object.<anonymous>.Allure.getCurrentTest (node_modules/allure-js-commons/index.js:25:34)
      at Allure.Object.<anonymous>.Allure.setDescription (node_modules/allure-js-commons/index.js:79:10)
      at Reporter.description (node_modules/jest-allure/dist/Reporter.js:24:21)
@ccckblaze ccckblaze changed the title add 'it.concurrent' async support? Add 'it.concurrent' async support? [feature] Feb 18, 2021
@ccckblaze ccckblaze changed the title Add 'it.concurrent' async support? [feature] [feature request] Add 'it.concurrent' async support? Feb 18, 2021
@c4lifa
Copy link

c4lifa commented Jul 5, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants