2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-12 00:22:18 +00:00
Commit Graph

2741 Commits

Author SHA1 Message Date
Raffi Enficiaud
ea9d9b9a8e Merge branch 'topic/5563-test-macros-in-global-fixtures' into develop
* topic/5563-test-macros-in-global-fixtures:
  Change logs
  Documentation update for the new macros
  Fixing logging issues for JUnit with global fixtures
  Fixture setup/teardown now applied to BOOST_FIXTURE_TEST_CASE familly of macros
  Fixture setup/teardown detection for C++11 capable compilers
  Improving global initialization and fixtures
2017-06-23 16:30:49 +02:00
Raffi Enficiaud
5e9d1e04f6 Change logs 2017-06-23 15:00:09 +02:00
Raffi Enficiaud
e1b211f254 Documentation update for the new macros
- BOOST_TEST_GLOBAL_FIXTURE explained
- BOOST_TEST_GLOBAL_INITIALIZATION explained
- changed the examples, deprecating BOOST_GLOBAL_FIXTURE
- in the logger part, introduced the fact that BOOST_TEST_GLOBAL_INITIALIZATION should be used and no assertion is supported in this case
2017-06-23 14:54:56 +02:00
Raffi Enficiaud
5757d9cd16 Fixing logging issues for JUnit with global fixtures
- considering skipped tests: a skipped test is not considered as an error, especially when there was no logged information
- removing CR/LF from TU names
- updating the JUnit output
- additional refactoring of junit
2017-06-22 09:22:57 +02:00
Raffi Enficiaud
8710eb8277 Fixture setup/teardown now applied to BOOST_FIXTURE_TEST_CASE familly of macros 2017-06-22 09:22:57 +02:00
Raffi Enficiaud
1ba4e0a9b8 Fixture setup/teardown detection for C++11 capable compilers 2017-06-22 09:22:56 +02: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
626c236bd4 Merge branch 'topic/PR106-VS2017-C++17-compatibility' into next-internal
* topic/PR106-VS2017-C++17-compatibility:
  Change log
  Conditionally replace deprecated/removed C++98 binders, adapters, and random_shuffle by emulations using more modern equivalents.
2017-05-15 21:47:55 +02:00
Raffi Enficiaud
f12b527a81 Change log 2017-05-15 21:47:24 +02:00
Daniela Engert
f3a26e0cf9 Conditionally replace deprecated/removed C++98 binders, adapters, and random_shuffle by emulations using more modern equivalents.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-01 10:11:47 +02:00
Raffi Enficiaud
e4db0d6d2c Merge branch 'topic/11756-non-standards-fpexception-intel' into next-internal
* topic/11756-non-standards-fpexception-intel:
  Changelog
  FPE: disabling support of the glibC extensions for uLibC std library
  Preventing the compilation of floating points with GCC when glibc is not in use
2017-03-18 08:20:38 +01:00
Raffi Enficiaud
3b1f8e669e Changelog 2017-03-18 08:18:59 +01:00
Raffi Enficiaud
cb2a1c2488 FPE: disabling support of the glibC extensions for uLibC std library
- this mimics the behaviour of boost 1.61 (external patch to BOOST_NO_FENV_H)
2017-03-18 08:18:59 +01:00
Raffi Enficiaud
066e28ccec Preventing the compilation of floating points with GCC when glibc is not in use
- Gathering the support of FPE in one place/several macros and using those in both
  execution_monitor.hpp and execution_monitor.ipp in a more coherent way
- Updating the support of the floating point exceptions: fenableexcept/fdisableexcept are
  GLIBC extensions and the definition of FENV does not imply the existance of those functions
2017-03-11 10:01:59 +01:00
Raffi Enficiaud
7051d361f8 Merge branch 'topic/12540-printing-types-customisation-point' into next-internal
* topic/12540-printing-types-customisation-point:
  Change log update
  Documenting the customization point
  Fixing the tests and checking everything works ok
  Test for customization points
  Customization points for printing user defined types through `boost_test_print_type`
2017-03-09 15:52:41 +01:00
Raffi Enficiaud
3f6cd34e0f Merge branch 'topic/junit-more-efficient' into next-internal
* topic/junit-more-efficient:
  Change log update
  JUnit: updating documentation
  JUnit: changing the default to log-messages
  JUnit: refactoring for handling the different phases in an easier way
  JUnit: being able to indicate the log level for speeding up
  Using lists for the output streams
  Lowering JUnit output memory footprint
2017-03-09 15:51:57 +01:00
Raffi Enficiaud
1f803ae342 Change log update 2017-03-09 15:47:06 +01:00
Raffi Enficiaud
e7c9464d62 Documenting the customization point 2017-03-09 15:47:05 +01:00
Raffi Enficiaud
f886e36ea9 Fixing the tests and checking everything works ok 2017-03-09 15:47:05 +01:00
Raffi Enficiaud
f651c615d9 CMake: making the documentation target more explicit 2017-03-09 11:00:42 +01:00
Raffi Enficiaud
84dbe8b027 Change log update 2017-03-06 14:31:26 +01:00
Raffi Enficiaud
5cc8efa368 JUnit: updating documentation 2017-03-06 14:31:26 +01:00
Raffi Enficiaud
3f1da25d93 JUnit: changing the default to log-messages 2017-03-05 20:40:59 +01:00
Raffi Enficiaud
88b3854513 JUnit: refactoring for handling the different phases in an easier way
- adding the global messages as a global sysout/syserr
- detecting/parsing better the skipped tests
2017-03-05 20:13:40 +01:00
Raffi Enficiaud
e02d6b6758 JUnit: being able to indicate the log level for speeding up
- junit internal log level to be able to intercept all the intermediate messages (tu enter/exit)
- skipping events that do not match the desired log level
- some refactoring (root of the subtree, getter of the current log)
- logs that do not belong to any TU go to a global log

TODO: global log should be outputted to the stream as well
2017-03-01 23:51:20 +01:00
Raffi Enficiaud
7b49db460e Using lists for the output streams 2017-03-01 09:15:09 +01:00
Raffi Enficiaud
c1592debe5 Lowering JUnit output memory footprint 2017-03-01 08:59:09 +01:00
Raffi Enficiaud
08480e4345 Test for customization points 2017-02-16 08:38:33 +01:00
Raffi Enficiaud
065e85ff08 Customization points for printing user defined types through boost_test_print_type
- some cleanups
2017-02-16 08:38:33 +01:00
Raffi Enficiaud
1bb72301c2 Merge branch 'topic/12748-VERSION-macro-clashes' into next-internal
* topic/12748-VERSION-macro-clashes:
  Fix tests issues
  Change log update
  Change some capital variable names to lowercase

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-02-15 09:56:55 +01:00
Raffi Enficiaud
5ff98ad58e Merge branch 'topic/PR107-BOOST_NO_EXCEPTIONS-typos' into next-internal
* topic/PR107-BOOST_NO_EXCEPTIONS-typos:
  Change log update
  Fix typo

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-02-15 09:55:55 +01:00
Raffi Enficiaud
243542f9e2 Merge branch 'topic/12778-nullptr' into next-internal
* topic/12778-nullptr:
  Change log update
  nullptr support in the test tools + test

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-02-15 09:54:49 +01:00
Raffi Enficiaud
00fe1cabbd Merge branch 'topic/12712-several-test-suite-decl-in-same-comp-unit' into next-internal
* topic/12712-several-test-suite-decl-in-same-comp-unit:
  Change log
  Fix using __COUNTER__ when available
  Test case firing issue 12712
  Correction of the previous syntax fix
  Fix Markdown link format
  Preparing changelog for 1.64
2017-02-15 09:54:01 +01:00
Raffi Enficiaud
c431cfc685 Change log update 2017-02-15 09:22:35 +01:00
equal-l2
081a1dd3ef Fix typo 2017-02-15 09:22:35 +01:00
Raffi Enficiaud
1fbd28092d Change log update 2017-02-15 09:21:42 +01:00
Raffi Enficiaud
229e71199c nullptr support in the test tools + test 2017-02-15 09:21:42 +01:00
Raffi Enficiaud
bc427731cc Fix tests issues 2017-02-15 09:21:29 +01:00
Raffi Enficiaud
d49e190a5b Change log update 2017-02-15 09:21:29 +01:00
Adam Majer
20bcf731e2 Change some capital variable names to lowercase
Addresses issue 12748.
Now potential clashing variable name used in runtime parameters are lowercase and prepended with "btrt_".
2017-02-15 09:21:29 +01:00
Raffi Enficiaud
f935b30951 Change log 2017-02-15 09:21:16 +01:00
Raffi Enficiaud
a7d1c889c9 Fix using __COUNTER__ when available 2017-02-15 09:21:16 +01:00
Raffi Enficiaud
54b139a622 Test case firing issue 12712
The scenario is that we have two identical files defining test cases and suites. The suites are the same in both files, tests are not. The line numbers are the same as well.
Finally those files are #include'd in a unique .cpp file. The registrar for the test suites are having the same name and raising a compilation error
2017-02-15 09:21:16 +01:00
Raffi Enficiaud
4a3f0297c3 Merge pull request #111 from norbertwenzel/markdown_syntax
Correction of the previous syntax fix
2017-02-14 23:28:20 +01:00
Norbert Wenzel
279b977ad4 Correction of the previous syntax fix
I messed up the order of the different brackets and did not preview the
markdown before pushing. I'm very sorry.
This fix is tested in Atom's Markdown preview now and really fixes the
issue.
2017-02-14 20:23:15 +01:00
Raffi Enficiaud
7a7028bb94 Merge pull request #110 from norbertwenzel/markdown_syntax
Fix Markdown link format
2017-02-14 19:37:26 +01:00
Norbert Wenzel
420801e686 Fix Markdown link format 2017-02-14 19:25:19 +01:00
Raffi Enficiaud
641a6cb982 Preparing changelog for 1.64 2017-01-30 08:39:23 +01:00
Raffi Enficiaud
c743bcb4ad Fix documentation header 2017-01-29 17:19:29 +01:00
Raffi Enficiaud
3c2b536cd9 Merge branch 'local/fix-unsupported-compiler-options' into develop
* local/fix-unsupported-compiler-options:
  Fixing the compilation issues in mingw
2016-12-11 22:06:03 +01:00