2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-19 16:52:11 +00:00
Files
Raffi Enficiaud 847212ae0c Improving global initialization and fixtures
- new macros:
  BOOST_TEST_GLOBAL_FIXTURE: for global "real" fixtures
  BOOST_TEST_GLOBAL_CONFIGURATION: for global configuration of observers.
- deprecating BOOST_GLOBAL_FIXTURE. BOOST_GLOBAL_FIXTURE and BOOST_TEST_GLOBAL_CONFIGURATION are currently
  fully equivalent, the former being confusing in term of scope/role is deprecated
- SFINAE detection for a setup/teardown function within the fixture class
- Attaching global fixture to the main or master test unit being executed, exactly as other fixtures. Global fixtures
  via BOOST_TEST_GLOBAL_FIXTURE registers themselves in a particular field of the framework and are attached each time
  the framework executes the tests, such that we can run the framework on another test root and still benefit from the
  global fixtures. The global fixtures are appended to already existing fixtures (in case the master test suite is not
  the root of the current execution tree).
- Checking that the framework setup is not failing for running the test
- RAII class for restoring the global fixtures
- Tests on the setup/teardown detection
- Tests on global fixtures and baseline
- Fixing several logging issues

Some additional refactoring
- renaming m_curr_test_case to m_curr_test_unit
- function for providing the current test unit (and not only the current test case)
- for output_stream comparison: stops properly if the reference stream is shorter than the current one,
  initialises the read char correctly to 0 and prints a proper ~ at the mismatch location
2017-06-22 09:20:58 +02:00
..
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2015-02-11 14:22:13 -05:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2015-01-26 10:08:40 +01:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00
2010-05-16 04:03:05 +00:00