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

Unable to nest test suites with Allure-jest #61

Closed
2 tasks
missTam opened this issue Dec 7, 2019 · 1 comment
Closed
2 tasks

Unable to nest test suites with Allure-jest #61

missTam opened this issue Dec 7, 2019 · 1 comment
Labels
theme:jest Jest related issue

Comments

@missTam
Copy link

missTam commented Dec 7, 2019

I'm submitting a ...

  • [#] bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

When I write describe() within another describe() in order to create nested test suites, string from one describe() gets concatenated with string from other describe(), and test suites are displayed all in one level - no nesting.

I am experiencing the same issue with Allure-Jest like the following users:

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

please see links above - it is the same issue

What is the expected behavior?

describe() function is used for marking test suites in Allure report. Multiple nested describe() functions produce nested test suites in the report.

What is the motivation / use case for changing the behavior?

Better visibility/ redability of test results in projects of higher complexity;

Please tell us about your environment:

Allure version 2.9.0
Test framework [email protected]
Generate report using [email protected] ([email protected] on a local host)

Other information

@epszaw
Copy link
Member

epszaw commented Nov 23, 2023

Seems, it's not actual anymore for the latest version of official allure-jest integration.

The report for the following snippet:

describe("first suite", () => {
  describe("second suite", () => {
    describe("third suite", () => {
      describe("fourth suite", () => {
        describe("fifth suite", () => {
          it("should pass 1", () => {
            expect(true).toBe(true)
          })
          
          it("should pass 2", () => {
            expect(true).toBe(true)
          })
          
          it("should pass 3", () => {
            expect(true).toBe(true)
          })
        })
      })
    })
  })
})

Looks like:

image

@epszaw epszaw closed this as completed Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:jest Jest related issue
Projects
None yet
Development

No branches or pull requests

3 participants