Commit Graph

19 Commits

Author SHA1 Message Date
Raffi Enficiaud
fcd24729df New documentation section about runtime configuration
- adding tests for custom command line argument passing
- using command line argument in global fixtures and raising strong errors
- using command line argument in init function and describing the errors
- using command line argument dataset test cases and describing the errors
- removing sample totally from all the examples
2019-03-19 01:43:29 +01:00
Raffi Enficiaud
a84a5564f5 Default visibility for enums and rtti objects facility
Making the RTTI objects globally visible.
Some old versions of clang are apparently not honoring
the enum visibility.
2019-02-08 00:00:01 +01:00
Raffi Enficiaud
45ee7769f5 Making the examples as part of the tests being run 2019-02-02 00:37:59 +01:00
Raffi Enficiaud
f3e4174572 Addressing #13380: join returning reference to temporary
Raising an error in case of reference to temporary by changing the compiler options.
Seems to work better than any other programmatic check.

Removing the need for the sample type definition from datasets.
2018-10-29 10:45:59 +01:00
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
Raffi Enficiaud
f651c615d9 CMake: making the documentation target more explicit 2017-03-09 11:00:42 +01:00
Raffi Enficiaud
3904480885 Minor documentation changes 2016-11-03 00:07:17 +01:00
Raffi Enficiaud
5d19adbe8f Adding smoke tests for the loggers issue 2016-10-31 17:03:50 +01:00
Raffi Enficiaud
875dda8de7 JUnit logger: implementation
- Make JUnit logger discard the log levels to log all events
- Currently JUnit discards the file directory where the assertion is being logged
- Uses tree visitation at the end of the test suite in order to generate the log file
2016-08-18 00:17:31 +02:00
Raffi Enficiaud
96740875ec Cmake: including the expected output files in the projects sources 2016-02-29 08:45:55 +01:00
Raffi Enficiaud
a263b87a92 CMakeLists.txt - small improvement 2016-01-09 21:21:53 +01:00
Raffi Enficiaud
58b026694e Updating CMake 2015-12-05 22:43:54 +01:00
Raffi Enficiaud
57f2aa8f0f CMake: adding unit tests 2015-10-19 14:18:50 +02:00
Raffi Enficiaud
71ff858770 CMakeLists.txt: adding unit test and disabling auto link 2015-10-19 14:17:59 +02:00
Raffi Enficiaud
547de00843 Adding a CMakeLists.txt file, to avoid loosing too much time in switching environments for debugging
Adding the tests into CMake from the doc/example path
2015-10-19 14:17:59 +02:00
Raffi Enficiaud
81487fa2e2 Revert "Adding a CMakeLists.txt file, to avoid loosing too much time in switching environments for debugging"
This reverts commit 8fac3b6edf.
2015-10-08 03:18:08 +02:00
Raffi Enficiaud
cabcd04597 Revert "file headers cleanup"
This reverts commit ffb90f21b7.
2015-10-08 03:17:48 +02:00
Gennadiy Rozental
ffb90f21b7 file headers cleanup 2015-09-29 22:18:22 -04:00
Raffi Enficiaud
8fac3b6edf Adding a CMakeLists.txt file, to avoid loosing too much time in switching environments for debugging
Adding the tests into CMake from the doc/example path
2015-09-29 09:58:45 +02:00