diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 11:24:46 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-09-13 11:25:39 +0900 |
commit | 4fadd968fa12130524c8380f33fcfe25d4de79e5 (patch) | |
tree | fd26a490cd15388d42fc6652b3c5c13012e7f93e /boost/test/framework.hpp | |
parent | b5c87084afaef42b2d058f68091be31988a6a874 (diff) | |
download | boost-4fadd968fa12130524c8380f33fcfe25d4de79e5.tar.gz boost-4fadd968fa12130524c8380f33fcfe25d4de79e5.tar.bz2 boost-4fadd968fa12130524c8380f33fcfe25d4de79e5.zip |
Imported Upstream version 1.65.0upstream/1.65.0
Change-Id: Icf8400b375482cb11bcf77440a6934ba360d6ba4
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'boost/test/framework.hpp')
-rw-r--r-- | boost/test/framework.hpp | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/boost/test/framework.hpp b/boost/test/framework.hpp index f94bcf125d..099c02969b 100644 --- a/boost/test/framework.hpp +++ b/boost/test/framework.hpp @@ -74,7 +74,7 @@ BOOST_TEST_DECL bool test_in_progress(); /// This function shuts down the framework and clears up its mono-state. /// /// It needs to be at the very end of test module execution -BOOST_TEST_DECL void shutdown(); +BOOST_TEST_DECL void shutdown(); /// @} /// @name Test unit registration @@ -132,12 +132,28 @@ BOOST_TEST_DECL void clear(); /// @param[in] to test observer object to add BOOST_TEST_DECL void register_observer( test_observer& to ); -/// Excldes the observer object form the framework's list of test observers +/// Excludes the observer object form the framework's list of test observers /// @param[in] to test observer object to exclude BOOST_TEST_DECL void deregister_observer( test_observer& to ); /// @} +/// @name Global fixtures registration +/// @{ + +/// Adds a new global fixture to be setup before any other tests starts and tore down after +/// any other tests finished. +/// Test unit fixture lifetime should exceed the testing execution timeframe +/// @param[in] tuf fixture to add +BOOST_TEST_DECL void register_global_fixture( test_unit_fixture& tuf ); + +/// Removes a test global fixture from the framework +/// +/// Test unit fixture lifetime should exceed the testing execution timeframe +/// @param[in] tuf fixture to remove +BOOST_TEST_DECL void deregister_global_fixture( test_unit_fixture& tuf ); +/// @} + /// @name Assertion/uncaught exception context support /// @{ /// Context accessor @@ -178,6 +194,15 @@ BOOST_TEST_DECL context_generator get_context(); /// @returns a reference the master test suite instance BOOST_TEST_DECL master_test_suite_t& master_test_suite(); +/// This function provides an access to the test unit currently being executed. + +/// The difference with current_test_case is about the time between a test-suite +/// is being set up or torn down (fixtures) and when the test-cases of that suite start. + +/// This function is only valid during test execution phase. +/// @see current_test_case_id, current_test_case +BOOST_TEST_DECL test_unit const& current_test_unit(); + /// This function provides an access to the test case currently being executed. /// This function is only valid during test execution phase. @@ -231,6 +256,8 @@ BOOST_TEST_DECL void assertion_result( unit_test::assertion_resul BOOST_TEST_DECL void exception_caught( execution_exception const& ); /// Reports aborted test unit to all test observers BOOST_TEST_DECL void test_unit_aborted( test_unit const& ); +/// Reports aborted test module to all test observers +BOOST_TEST_DECL void test_aborted( ); /// @} namespace impl { |