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

organize tests in "chapters" / label a set of tests #103

Open
SNAnalyst opened this issue Jul 5, 2022 · 0 comments
Open

organize tests in "chapters" / label a set of tests #103

SNAnalyst opened this issue Jul 5, 2022 · 0 comments

Comments

@SNAnalyst
Copy link

SNAnalyst commented Jul 5, 2022

I often use many dozens of tests for the testing of a single function and include those inside a single testing file. It would be very useful if I could label tests or label/title/name a block of tests, so that it is easy to see which test failed.
Currently, I see that 78 tests passed and then an error occurred. But it is often not at all obvious which test actually failed. If tests can be labelled, or if a block of tests can be labelled (when using a block of tests to test a specific aspect of the tested function), then it should be possible to see that test "XYZ" failed or that a test from block "ZYX" failed. That can speed up error finding enormously.

Could it be made possible to label tests or to jointly label a block of tests and then access that label when a test file fails?

(I know there is an "info" argument, but that is not the same, I guess)

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