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

1155 Commits

Author SHA1 Message Date
Raffi Enficiaud
412fcc6e12 Merge branch 'topic/GH-158-boost_test_print_type-printing-on-single-value' into next-internal
* topic/GH-158-boost_test_print_type-printing-on-single-value:
  Change log
  Unary expression: fixing the printing issue
2018-09-25 06:45:34 +02:00
Raffi Enficiaud
5ce01d4c9b Scoped color returning to initial color 2018-09-24 21:20:15 +02:00
Raffi Enficiaud
cc7796fbe9 Unary expression: fixing the printing issue 2018-09-24 20:27:46 +02:00
Raffi Enficiaud
c4e2813f6d Merge branch 'topic/PR-161-self-containment-in-b2' into next-internal
* topic/PR-161-self-containment-in-b2:
  Change log
  Fixing self-containment issues
  Add check for self-containment of includes
2018-09-24 07:24:25 +02:00
Jürgen Hunold
57c804bc11 Fixing self-containment issues 2018-09-24 07:23:16 +02:00
Raffi Enficiaud
fb7ce3d2f8 Merge branch 'topic/GH-163-slowdown-at-startup' into next-internal
* topic/GH-163-slowdown-at-startup:
  Change log
  Delaying the check on duplicate names during the test initialization
2018-09-24 07:00:39 +02:00
Raffi Enficiaud
22985a64c1 Merge branch 'topic/PR-154-fix-scoped_color' into next-internal
* topic/PR-154-fix-scoped_color:
  Fix: scoped_color does not return the previous color
2018-09-24 06:59:06 +02:00
Raffi Enficiaud
4a1e3eb8cb Fix: scoped_color does not return the previous color
- minor cleanups
2018-09-24 00:50:48 +02:00
Raffi Enficiaud
21537234e1 Documentation update 2018-09-24 00:47:13 +02:00
Raffi Enficiaud
4c978f7383 Delaying the check on duplicate names during the test initialization
- Updating tests and ensuring that suites with similar names can coexit
2018-09-24 00:46:11 +02:00
Raffi Enficiaud
cb5201fa56 Making boost::execution_exception visible 2018-09-24 00:45:29 +02:00
Raffi Enficiaud
e021ca8b68 Removing the singleton related files 2018-09-24 00:45:29 +02:00
Raffi Enficiaud
f08bd860b2 Removing broken Singleton pattern
The singleton is not robust to initialization in several translation units between
shared library with hidden visibility. Removing

Fixing tests accordingly.
2018-09-23 23:44:47 +02:00
Raffi Enficiaud
4df5b095ea Merge branch 'topic/PR-151-BOOST_CLANG-define' into next-internal
* topic/PR-151-BOOST_CLANG-define:
  Change log
  Fix warning: BOOST_CLANG is not defined, evaluates to 0
2018-09-03 07:08:58 +02:00
Raffi Enficiaud
9bada60a62 Merge branch 'topic/PR-154-correct-non-color-output-handling' into next-internal
* topic/PR-154-correct-non-color-output-handling:
  Change log
  Further cleanup
  When specifying --color_output=no, don't output color codes either
2018-09-02 17:39:10 +02:00
Mateusz Łoskot
462945118e Fix warning: BOOST_CLANG is not defined, evaluates to 0
The diagnostic is issued when compiled with GCC/clang flag -Wundef.

Although in case BOOST_CLANG is not defined, ie. is not a macro
and BOOST_CLANG identifier is considered to be zero, the #ifdef
directive makes the intention clearer.
2018-09-02 17:36:58 +02:00
Raffi Enficiaud
4152af64b4 New macro for manually adding tests by specifying the name
- BOOST_TEST_CASE_NAME for specifying the name of the test case to add
- Documentation updates
2018-09-02 17:33:29 +02:00
Raffi Enficiaud
cdb401ec62 Further cleanup 2018-09-02 10:23:16 +02:00
Nathan Toone
ab714742f5 When specifying --color_output=no, don't output color codes either 2018-09-02 10:22:58 +02:00
Raffi Enficiaud
a82df91f33 Updating runtime cla-help 2018-06-27 12:30:10 +02:00
Raffi Enficiaud
d477598759 Removing tabs 2018-06-27 12:30:10 +02:00
Raffi Enficiaud
b4e08ee4bf Merge branch 'topic/12953-access-master_test_suite-in-datatest-cases' into next-internal
* topic/12953-access-master_test_suite-in-datatest-cases:
  Change log
  Another example with different arity
  Datasets based on std::initializer_list fixes
  Delayed/lazy dataset construction
  Handling sequences of size 0

# Conflicts:
#	doc/closing_chapters/change_log.qbk
#	test/Jamfile.v2
2018-06-27 10:26:54 +02:00
Raffi Enficiaud
b178b8d9a8 Datasets based on std::initializer_list fixes
Since the previous changes, the elements of the std::initializer_list
get destroyed before the test tree initializes properly. The changes
are

- not relying on a moved std::initializer_list for storing the values
of the dataset. Those are moved to a std::vector instead if the
move constructor is noexcept as expected by std::vector,
- providing a template parameter pack for the same type of constructs
in place of the std::initializer_list

Some of the changes are also related to the fact that VS2013 does not
handle properly the std::initializer_list vs template parameter pack.
2018-06-27 10:22:46 +02:00
Raffi Enficiaud
dea96e77bc Delayed/lazy dataset construction
The dataset generators need to access runtime variables, which is
possible only after the test framework enters its setup.

The purpose of those changes is to instanciate the dataset and populate
the test tree during the initialization phase and not during the static
instanciation of the different test case:

- new delayed dataset type that is used for holding the parameters of a dataset
  and its type. This dataset will be instanciated on demand (lazy construct)
- the test tree is now able to hold a generator until the init phase of the test
  module. Once the init reached, the lazy datasets are instanciated and the test
  tree populated with new tests.
- operations like zip do not require the size earlier than needed
2018-06-27 10:22:46 +02:00
Raffi Enficiaud
6752427ecc Bugfix short form of runtime parameters
The fact that the separator is empty for most of the short version
of the runtime parameters make it such that the parameter is considered
as another/next token.
2018-06-27 10:11:46 +02:00
Raffi Enficiaud
977c48fc6c Handling sequences of size 0 2018-06-26 15:58:38 +02:00
Raffi Enficiaud
0591dc21d3 Updating the documentation
- difference between skipped and disabled tests
- examples
- additional comments in the code
2018-06-25 20:12:37 +02:00
Raffi Enficiaud
9a9e1467fd Precondition failure is not an error and better handling of skipped tests
- Skipped tests is not an error
- Handling of skipped tests
  - Now printing when a test has been skipped because of the failed precondition
  - More demonstrative test
- Unit test reproducing the precondition error issue
2018-06-25 20:10:51 +02:00
Raffi Enficiaud
3f5d06cb22 Merge branch 'topic/13528-crashes-with-report_sink' into next-internal
* topic/13528-crashes-with-report_sink:
  Change log
  Execute the callback cleaner also for stdout/stderr
  Ensuring shutdown in all execution path

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2018-06-21 22:12:35 +02:00
Raffi Enficiaud
3b968571ab Execute the callback cleaner also for stdout/stderr 2018-06-21 22:11:48 +02:00
Raffi Enficiaud
b785e7b4ee Ensuring shutdown in all execution path
- added corresponding smoke test
2018-06-21 20:15:34 +02:00
Raffi Enficiaud
090814233f Merge branch 'topic/prevent-master-test-suite-from-copy' into next-internal
* topic/prevent-master-test-suite-from-copy:
  Change log
  Preventing the copy of the master test suite
2018-06-20 23:03:23 +02:00
Raffi Enficiaud
8f80e9de8c Preventing the copy of the master test suite 2018-06-20 22:38:07 +02:00
Raffi Enficiaud
2974245af9 Declaring all variables for floating point exceptions for the unsupported case 2018-06-20 20:11:17 +02:00
Raffi Enficiaud
9bd8ff4dd0 Guarding template test case with tuples declaration better 2018-04-27 18:07:04 +02:00
Reimar Döffinger
a0c4c81318 Change Windows.h include to all-lowercase.
Otherwise cross-compiling with MinGW on Linux
will fail.
2018-03-26 21:19:57 +02:00
Andrey Semashev
efdefe17f5 Fix stdcerr file creation on shutdown. 2018-03-20 13:50:43 +03:00
Raffi Enficiaud
40ee9bae08 Adding extensive tests
- modifying a bit the API of the unit_test_log to retrieve the stream
- defining a test that checks after the framework executed that the streams
  are correct
2018-02-19 23:30:05 +01:00
Raffi Enficiaud
908368f279 Framework now removes references to the streams at shutdown
- Adding explicit shutdown for loggers and result reports in the shutdown
- Callback for clearing the loggers / report streams
2018-02-14 11:14:22 +01:00
Raffi Enficiaud
801754362e Merge branch 'topic/13435-report-generation-before-observer-shutdown' into next-internal
* topic/13435-report-generation-before-observer-shutdown:
  Change log
  Moving the report generation before the global configuration shutdown
2018-02-12 00:48:21 +01:00
Raffi Enficiaud
3f70773a41 Merge branch 'topic/13058-warning-reinterpret-cast' into next-internal
* topic/13058-warning-reinterpret-cast:
  Change log
  static_cast instead of reinterpret_cast
2018-02-12 00:47:53 +01:00
Raffi Enficiaud
b2b30fda1c Moving the report generation before the global configuration shutdown
- adding dedicated test
2018-02-12 00:46:03 +01:00
Raffi Enficiaud
74ec7e1890 static_cast instead of reinterpret_cast 2018-02-11 19:10:06 +01:00
Raffi Enficiaud
6a3ef6d693 Closing some missing JUNIT tags
- Check the JUNIT build_info
2018-02-11 16:04:53 +01:00
Raffi Enficiaud
c4d0aa6587 Merge branch 'topic/13181-collection-compare-missing-typename' into next-internal
* topic/13181-collection-compare-missing-typename:
  Change log and documentation update
  Fixing VS compilation issues
  forward_iterable: const_iterator infered by the type returned by begin
2018-02-10 20:33:12 +01:00
Raffi Enficiaud
3fb63194cd Fixing VS compilation issues
- VS2012 does not work well with decltype
- VS2013 has a buggy initialization_list that is detected in later updates and lead to a compilation error
2018-02-10 20:31:08 +01:00
Raffi Enficiaud
bb95cdcc42 Merge branch 'topic/12596-sanitize-metacharacters-test-names' into next-internal
* topic/12596-sanitize-metacharacters-test-names:
  Change log
  Sanitizing chars in test case names that collide with runtime filters reserved chars
2018-02-10 20:28:35 +01:00
Raffi Enficiaud
dcfe8b2005 Increasing the arity of BOOST_DATA_TEST_CASE by switching to std::bind
std::bind compatible with boost::function allows for truly variadic.
2018-02-10 14:39:09 +01:00
Raffi Enficiaud
9f0291a6f1 forward_iterable: const_iterator infered by the type returned by begin
- fixing computation of size for types that have only begin/end
- adding test on the new type requirements
2018-02-04 20:42:53 +01:00
Raffi Enficiaud
e3e2a191cf Sanitizing chars in test case names that collide with runtime filters reserved chars
- Additional sanitizing logic for chars that appears on runtime filters
- Not sanitizing spaces anymore
- Remove leading and trailing spaces on test names
2018-02-04 19:53:31 +01:00