Skip to content

Jest HTML Reporter with Jest Runner Groups dependency #304

@bernreccion

Description

@bernreccion

Is your feature request related to a problem? Please describe.
In my project, i used jest runner groups dependency which allows me to tag test files and execute specific group of tests. However, if i run the script that only executes with a tag on it, the generated report's test suites total will be the overall number of my test files, not the number of test files that i executed.

Describe the solution you'd like
update logic if a user uses jest runner groups dependency (fix count)

Describe alternatives you've considered
i dont see any alternatives

Additional context
In this example, i have a single test file with a group tag of "testGroup" and 2 test blocks on it
image

when the report is generated, the test suites total doesn't match and I think the test suites total should be based on the number of grouped test files using the dependency, which for me makes more sense
image
image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions