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

[json reporter] Failing setupAll and tearDownAll prevents all tests from being shown in the results #2212

Open
MarkOSullivan94 opened this issue Apr 22, 2024 · 0 comments

Comments

@MarkOSullivan94
Copy link

Expected behaviour

When I run the tests and produce a JSON test results file it shows a list of all of the tests for the package regardless if they fail or not

Current behaviour

When I run the tests and the setupAll fails for my test suite then the report does not include all of tests in that suite and only shows setupAll as a test

Why this is a problem

The JSON test results do not show how many tests there are actually are and is misleading. This is a problem when trying to get an accurate count of tests present in the project along with their current status - passing or failing.

Solution

Remove setupAll and teardownAll as tests included in the report and only include actual tests

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

1 participant