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

[Question] How to get test case name #407

Closed
maidamai0 opened this issue Jul 30, 2020 · 2 comments
Closed

[Question] How to get test case name #407

maidamai0 opened this issue Jul 30, 2020 · 2 comments

Comments

@maidamai0
Copy link

Question

How to get the name of the test case? In the example of the following code, how to get the test_name?

TEST_CASE("test_name") {
const auto name = doctest::detail::some_thing_like_get_name(); // name will be "test_name"
}
@onqtam
Copy link
Member

onqtam commented Jul 30, 2020

see this issue for details how to workaround it: #345

@maidamai0
Copy link
Author

Works for me, Thank you!

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

2 participants