[Boost-users] Boost.Test: access name of test case within that case?

180 views
Skip to first unread message

Martin Moene

unread,
Nov 16, 2009, 9:32:22 AM11/16/09
to Boost...@lists.boost.org
(Previously mis-posted in Boost.testing)

Hi,

I'm wondering if the name of a Boost.Test test case is available within
that case, and if so how.
Couldn't find it in the documentation, the list, a web search, nor by a
quick browse of the sources.

Thanks for any reply ,

--
Martin Moene, http://www.eld.physics.LeidenUniv.nl/~moene/

_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Gennadiy Rozental

unread,
Nov 16, 2009, 11:22:59 AM11/16/09
to boost...@lists.boost.org
Martin Moene <m.j.moene <at> eld.physics.LeidenUniv.nl> writes:

>
> (Previously mis-posted in Boost.testing)
>
> Hi,
>
> I'm wondering if the name of a Boost.Test test case is available within
> that case,

Use framework::current_test_case() to access test_case const&, which has p_name
property.

Gennadiy

Reply all
Reply to author
Forward
0 new messages