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

Print out full section stacks on failure. #736

Closed
wants to merge 1 commit into from

Conversation

jruffin
Copy link

@jruffin jruffin commented Oct 28, 2016

The Console reporter now "traces" the full section stack of its
current test execution and prints it out instead of the section
stack of the failing assertion itself. Likewise, the JUnit reporter
now groups assertions together into the testcase element of the test
execution where they happened.

This fixes #734 and allows post-condition tests after the deepest
SECTION in a test execution.

The Console reporter now "traces" the full section stack of its
current test execution and prints it out instead of the section
stack of the failing assertion itself. Likewise, the JUnit reporter
now groups assertions together into the <testcase> of the test
execution where they happened.

This fixes catchorg#734 and allows post-condition tests after the deepest
SECTION in a test execution.
@jktjkt
Copy link

jktjkt commented Nov 11, 2016

This looks like what I've been looking for. Thanks!

@horenmar horenmar closed this Oct 20, 2020
@horenmar horenmar deleted the branch catchorg:master October 20, 2020 21:26
@ChrisThrasher
Copy link
Collaborator

Can we revisit this feature? In the case that a segfault happens within a given SECTION, it's useful to know what deepest SECTION was reached to get an idea for where to go looking for the problem. In such a case, I'm not sure how using generators as recommended here would be helpful.

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

Successfully merging this pull request may close these issues.

Failure reporting should print out previous SECTIONs for data-driven testing
5 participants