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

1072 Commits

Author SHA1 Message Date
Raffi Enficiaud
fcb302b66e Indicating the log level to the formatters for the contexts
- unit tests for the message part: for checking the dataset, we need to register it and then to re-run it under our own environment (so technically it runs twice in the test module)
- refactoring of tests for reusing the stream checker that is agnostic to filenames location, testing time, etc. Modifying the baseline outputs accordingly
2017-07-06 11:45:33 +02:00
Raffi Enficiaud
8b3e003aa4 Merge branch 'topic/removing-warnings' into next-internal
* topic/removing-warnings:
  Conflicting variable names
  Removing warnings
2017-07-06 11:41:42 +02:00
Raffi Enficiaud
8106d3d58e Merge branch 'topic/12228-header-compilation-independant' into next-internal
* topic/12228-header-compilation-independant:
  Change logs
  #12228: Adding missing headers to compile some files independantly

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2017-07-06 09:28:21 +02:00
Raffi Enficiaud
ba552e68c4 Conflicting variable names 2017-07-04 08:59:10 +02:00
Raffi Enficiaud
72a62b6c16 #12228: Adding missing headers to compile some files independantly 2017-06-27 21:13:46 +02:00
Raffi Enficiaud
bf703c2628 Fixing the relational/comparison operators for floating points
- simplifying the logic behind the operations
- minor doc fixes
- tests output change slightly due to the fact that <= and >= are now going through the
  floating point comparison
2017-06-27 20:54:55 +02:00
Raffi Enficiaud
29b289b985 Removing warnings 2017-06-26 16:31:58 +02:00
Raffi Enficiaud
91253a1ab1 Warnings 2017-06-24 21:53:14 +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
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
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
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
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
equal-l2
081a1dd3ef Fix typo 2017-02-15 09:22:35 +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
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
a7d1c889c9 Fix using __COUNTER__ when available 2017-02-15 09:21:16 +01:00
Raffi Enficiaud
98b0ef4ec0 Inspect tool honouring no hard tabs 2016-11-18 13:53:39 +01:00
Raffi Enficiaud
99c291b916 Merge branch 'topic/12530-add-version-to-cli' into next-internal
* topic/12530-add-version-to-cli:
  Change log
  Boost.Test learned the '--version' command line argument

# Conflicts:
#	doc/closing_chapters/change_log.qbk
#	test/Jamfile.v2
2016-11-16 21:06:17 +01:00
Raffi Enficiaud
21a333aa07 Merge branch 'topic/12531-run-test-with-colons' into next-internal
* topic/12531-run-test-with-colons:
  Bugfix token iterator ctor
  Merging tokens that start with \ or / with previous tokens
2016-11-16 21:04:36 +01:00
Raffi Enficiaud
99422b5aed Merge branch 'bug/log-sink-token-can-use-colon' into topic/12531-run-test-with-colons
* bug/log-sink-token-can-use-colon:
  Bugfix token iterator ctor
  Merging tokens that start with \ or / with previous tokens
2016-11-11 16:12:50 +01:00
Raffi Enficiaud
87c089db61 Bugfix token iterator ctor 2016-11-11 16:12:25 +01:00
Raffi Enficiaud
123366c033 Merging tokens that start with \ or / with previous tokens 2016-11-11 16:12:25 +01:00
Raffi Enficiaud
86bcffea6d Boost.Test learned the '--version' command line argument
- added '--version' that prints information equivalent to "--build_info" and then exits
- prints the Boost.Test variant in use
- moved the definition of the BOOST_TEST_INCLUDED macro on the top of the files such that CLA can safely print the Boost.Test variant in use
- added smoke test
- Module name printing should use BOOST_TEST_MODULE (and not BOOST_TEST_MAIN): adding compilation check
2016-11-09 08:46:13 +01:00
Raffi Enficiaud
815c0963f1 Merge branch 'topic/11907-string-as-collection-error' into next-internal
* topic/11907-string-as-collection-error:
  Change log and doc update
  String comparison can now be used with BOOST_TEST additional compare options
  Making std::string compatible with string comparison backend

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-11-08 10:47:50 +01:00
Raffi Enficiaud
15e84d93db Merge branch 'topic/12339-remove-blinking-from-color-output' into next-internal
* topic/12339-remove-blinking-from-color-output:
  Change log
  Now underlining the fatal errors instead of blinking
2016-11-08 10:45:51 +01:00
Raffi Enficiaud
a83817def5 Cleaning names with colons and fixing the proper demangling on all platforms
- replacing colons with underscores in the names cleaning
- names generated by template elements were not properly demangled in all platforms: using now the boost.core demangling functions  (same as execution monitor)
- adding smoke tests and changing existing ones accordingly
2016-11-02 22:14:54 +01:00
Raffi Enficiaud
923a84a2dd String comparison can now be used with BOOST_TEST additional compare options
- enabling modifiers per_element and lexicographic for strings
2016-11-02 22:03:19 +01:00
Raffi Enficiaud
3983783ecc Making std::string compatible with string comparison backend
- promoting std::string as a type convertible to basic_cstring
- changing the string comparison operator to account for basic_cstring convertible elements
- avoiding basic_cstring convertible elemets in collection comparison
- additional checks of the use of the adequate string comparator
- declaring string as a sequence for non C++11 compilers
2016-11-02 22:02:39 +01:00
Raffi Enficiaud
c843e26bc6 Now underlining the fatal errors instead of blinking 2016-11-01 19:36:27 +01:00
Raffi Enficiaud
cbbacca130 Merge branch 'topic/11756-floatingpoint-exception-macros' into next-internal
* topic/11756-floatingpoint-exception-macros:
  Some cleanup on the fpe symbols
  Updated change log
  trac 11756: fix usage of floating point exception macros

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2016-10-31 23:20:29 +01:00
Raffi Enficiaud
bb5fd50d03 Some cleanup on the fpe symbols 2016-10-31 19:54:21 +01:00
Raffi Enficiaud
75242f64c8 Merge branch 'PR/remove-gcc6-warnings' into next-internal
* PR/remove-gcc6-warnings:
  Change log update
  Fix unused parameter warnings/errors with gcc 6.
  Syntactic change silences latest gcc warnings about confusing 'if' statements.
2016-10-31 17:14:32 +01:00
Raffi Enficiaud
5ecc03c409 Bug fix default argument 2016-10-31 17:03:50 +01:00
Raffi Enficiaud
ea7d1be4f5 Bugfix: cast to wrong type 2016-10-31 17:03:50 +01:00
Romain Geissler
5473efb7a1 Fix unused parameter warnings/errors with gcc 6. 2016-10-18 23:48:10 +02:00