You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optionally: Add a feature to get the current section's hierarchy of names
These changes are useful if additional data for testing is loaded from or written to a filesystem. Directories and filenames could depend on the current section and thereby reduce duplication.
Additional context
In the past sometimes requests for these features were made but none ever reached a stable upstream (or non-deprecated) state. Especially the issue #510 (by @mlogan) contained a request for such features. However, it was resolved since workarounds were available.
Feature to get the current section's hierarchy of names
In the issue #510@jgm-radez suggested (and @isidore supported) the following approach to obtain the current section's hierarchy of names:
This feature is currently available in Catch2 but it was marked as deprecated in commit 57c346a by @philsquared and I could not find a reason for it. Why was this done?
Catch::getResultCapture().getCurrentTestName();
The text was updated successfully, but these errors were encountered:
I came here to create this exact issue. I am chaining very deep SECTIONS for testing cascading reads/writes for a compression driver and I sometimes get a rare failure out of a few hundred million assertions and it's tough to nail down the exact SECTION chain to produce the bug.
Would love a simple Breadcrumb trail sort of mechanism to iterate section names or just get them as a long string.
Description
I propose the following changes:
These changes are useful if additional data for testing is loaded from or written to a filesystem. Directories and filenames could depend on the current section and thereby reduce duplication.
Additional context
In the past sometimes requests for these features were made but none ever reached a stable upstream (or non-deprecated) state. Especially the issue #510 (by @mlogan) contained a request for such features. However, it was resolved since workarounds were available.
Feature to get the current section's hierarchy of names
In the issue #510 @jgm-radez suggested (and @isidore supported) the following approach to obtain the current section's hierarchy of names:
(Assumption: implemented in RunContext)
Feature to get the current test case's name
This feature is currently available in Catch2 but it was marked as deprecated in commit 57c346a by @philsquared and I could not find a reason for it. Why was this done?
Catch::getResultCapture().getCurrentTestName();
The text was updated successfully, but these errors were encountered: