Commit Graph

3194 Commits

Author SHA1 Message Date
Raffi Enficiaud
0cd86a38e8 Merge branch 'topic/GH-196-junit-abort-fail-not-same' into next-internal
* topic/GH-196-junit-abort-fail-not-same:
  Change log
  Junit counting fixups: failed and errored differences
2019-03-01 13:15:27 +01:00
Raffi Enficiaud
71f6d1c7cf Change log 2019-03-01 13:15:03 +01:00
Raffi Enficiaud
7e20f966dc Junit counting fixups: failed and errored differences
Failed and errored are exclusive in the JUnit sense.
Counting the number of total tests slightly differently.

Changing slightly the signature of unit_test_log_formatter::log_build_info to avoid a sticky
state when the function was called only once (happens for instance in JUNIT).
2019-03-01 08:47:50 +01:00
Raffi Enficiaud
8c56cd9d98 Disabling cppcheck on Travis 2019-03-01 07:19:17 +01:00
Raffi Enficiaud
891df25352 Indicating UBSAN for clang build 2019-03-01 07:19:17 +01:00
Raffi Enficiaud
011fb72954 Adjusting the UBSan options 2019-03-01 07:19:17 +01:00
James E. King III
10dfecf9e5 Added CI framework
- travis with valgrind, cppcheck, ubsan, codecov, covscan (future)
- appveyor with MSVC 2010 through 2017, cygwin 32/64, mingw 32/64
- README, LICENSE, etc.
- Fixed example Jamfile to build examples based on C++ features

This fixes #146
2019-03-01 07:19:17 +01:00
Raffi Enficiaud
412e3d5855 Merge branch 'develop'
* develop:
  Change log
  Documentation updates
  Adding the support for skipped test units/suites in the reporter and formatters
  <boost/timer.hpp> removal and time-out for suites and major refactoring
  Nicer change log
  Typo
  Change log PR-190
  Change log
  Correct library name in test runner help screen
  Repointing former SGI links
  Correcting BOOST_TEST messages in the scope of the Contexts documentation
  Fixing floating point dead link
  Removing the need for samples from datasets
  Change log with TOC
2019-02-27 23:37:52 +01:00
Raffi Enficiaud
2963322055 Merge branch 'doc/various-updates-cleanups' into next-internal
* doc/various-updates-cleanups:
  Nicer change log
  Typo
  Change log PR-190
  Repointing former SGI links
  Correcting BOOST_TEST messages in the scope of the Contexts documentation
  Fixing floating point dead link
  Removing the need for samples from datasets
  Change log with TOC
2019-02-27 23:27:13 +01:00
Raffi Enficiaud
76d1bdfef8 Merge branch 'topic/GH-202-boost-timer-deprecation' into next-internal
* topic/GH-202-boost-timer-deprecation:
  Change log
  Documentation updates
  Adding the support for skipped test units/suites in the reporter and formatters
  <boost/timer.hpp> removal and time-out for suites and major refactoring
2019-02-27 21:11:12 +01:00
Raffi Enficiaud
1ad1a43cae Change log 2019-02-27 15:13:57 +01:00
Raffi Enficiaud
d37cc27dad Documentation updates 2019-02-27 15:13:56 +01:00
Raffi Enficiaud
83d505a61d Adding the support for skipped test units/suites in the reporter and formatters 2019-02-27 14:58:57 +01:00
Raffi Enficiaud
42e9a15317 <boost/timer.hpp> removal and time-out for suites and major refactoring
As boost/timer.hpp is being deprecated, and the needed functionality
is very little, reimplemeted naively a timing class for the purpose
of measuring the test-unit time.

- specific timer class that is cross-platform and agnostic to changes made
  to the OS while measuring time (mac, posix and windows). Wall-clock and system/user
  time available
- changed framework to work fully with microseconds. Only ::alarm needs seconds
  and ceiling is used for signaling time-out
- Windows now signals also time-outs the same way as for other platforms (exception
  raised in the test and reported). However, Windows platform do not raise a signal
  that terminates the current test
- timeout is not used for failing a test-suite as well. Remaining time calculation is
  now made in microseconds. Adding an observer interface for signaling time out and
  adding the time outs in the test results
- cleaned up interfaces, clarify the code about the dimension of the different scalar values.
2019-02-27 14:55:00 +01:00
Raffi Enficiaud
fd945c07d2 Merge branch 'develop'
* develop:
  Change log
  Fixing propagation of decorators to underlying test-case generator
  Change log
  Added unused variable markup to silence gcc warnings.
  Use legacy _vsnprintf on MinGW.
  Change log
  Making BOOST_TEST_CONTEXT variadic and adding sticky context
  Change log
  Added documentation on throwing dataset
  Change log
  Extended fixture messages for template test cases
  Dataset test case: allowing fixtures w. setup/teardown
  Change log
  Relaxed tolerance based comparisons
  Change log
  Default visibility for enums and rtti objects facility
2019-02-18 22:05:18 +01:00
Raffi Enficiaud
1f913b7f7a Merge remote-tracking branch 'origin/topic/GH-171-test-name' into next-internal 2019-02-17 15:36:26 +01:00
Raffi Enficiaud
807eafa9ef Nicer change log 2019-02-15 13:44:21 +01:00
Raffi Enficiaud
a09fa65d28 Typo 2019-02-15 13:44:21 +01:00
Raffi Enficiaud
d94ac0955f Change log PR-190 2019-02-15 13:44:21 +01:00
Raffi Enficiaud
ab4e3e9e89 Change log 2019-02-15 13:40:56 +01:00
Tien Do
9103a0e027 Correct library name in test runner help screen 2019-02-15 13:40:49 +01:00
Raffi Enficiaud
fac1f77164 Repointing former SGI links 2019-02-15 13:39:54 +01:00
Raffi Enficiaud
b00085ed54 Correcting BOOST_TEST messages in the scope of the Contexts documentation 2019-02-15 13:39:54 +01:00
Raffi Enficiaud
89aeac71ac Fixing floating point dead link 2019-02-15 13:39:54 +01:00
Raffi Enficiaud
aae67d2ac2 Removing the need for samples from datasets 2019-02-15 13:39:54 +01:00
Raffi Enficiaud
e642b3ac15 Change log with TOC 2019-02-14 21:37:53 +01:00
Raffi Enficiaud
5771ddb4f8 Merge branch 'topic/GH-138-decorator-dataset-testcase' into next-internal
* topic/GH-138-decorator-dataset-testcase:
  Change log
  Fixing propagation of decorators to underlying test-case generator

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2019-02-14 08:33:24 +01:00
Raffi Enficiaud
6d44cd3014 Change log 2019-02-14 08:32:25 +01:00
Raffi Enficiaud
475a399d97 Merge branch 'topic/PR-205-Fix-MinGW-vsnprintf-compile-errors-warnings' into next-internal
* topic/PR-205-Fix-MinGW-vsnprintf-compile-errors-warnings:
  Change log
  Added unused variable markup to silence gcc warnings.
  Use legacy _vsnprintf on MinGW.

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2019-02-14 08:27:44 +01:00
Raffi Enficiaud
52c7da62d8 Fixing propagation of decorators to underlying test-case generator
The BOOST_DATA_TEST_CASE creates an implicit test suite. that consumes
all the decorators that have been declared prior to the BOOST_DATA_TEST_CASE
macro. In order to properly propagate the decorators to the underlying
test-case generator (the data test case), a new "stacked" decorator collector
has been implemented. The new decorator decorator::stack_decorator
allows the user to push the currently stacked decorator to a higher level of the
hierarchy.
2019-02-14 08:25:32 +01:00
Raffi Enficiaud
a2816aeb75 Merge branch 'topic/GH-197-plural-context-in-single-scope' into next-internal
* topic/GH-197-plural-context-in-single-scope:
  Change log
  Making BOOST_TEST_CONTEXT variadic and adding sticky context

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2019-02-13 07:15:12 +01:00
Raffi Enficiaud
fc546ae162 Change log 2019-02-13 07:11:59 +01:00
Andrey Semashev
40ddfdd0b1 Added unused variable markup to silence gcc warnings.
The singleton reference variables and a few other globals may not be actually
used in the user's code, which makes gcc emit warnings. This commit marks these
variables as potentially unused, which silences the warnings.
2019-02-13 07:11:59 +01:00
Andrey Semashev
c5ef935641 Use legacy _vsnprintf on MinGW.
Apparently, some versions of legacy MinGW headers don't provide
the standard vsnprintf function, as Appveyor CI fails for this target.
Thus we use the non-standard MSVC-specific _vsnprintf instead.
2019-02-12 01:12:04 +01:00
Raffi Enficiaud
35648b949d Change log 2019-02-12 01:05:05 +01:00
Raffi Enficiaud
1cf1503b23 Making BOOST_TEST_CONTEXT variadic and adding sticky context
To ease the creation of contexts, variadic let us declare several
values in one call (no extra brace) while ticky context let us
add new information while they arrive.

The example shows a random trial making a test fail. We force the failure
for the unit tests, which does not remove the documentation value of the
example.
2019-02-12 01:04:00 +01:00
Raffi Enficiaud
6653e061a8 Merge branch 'topic/GH-176-doc-dataset' into next-internal
* topic/GH-176-doc-dataset:
  Change log
  Added documentation on throwing dataset
2019-02-10 23:25:21 +01:00
Raffi Enficiaud
60eec92e0e Merge branch 'topic/GH-203-dataset-new-fixtures' into next-internal
* topic/GH-203-dataset-new-fixtures:
  Change log
  Extended fixture messages for template test cases
  Dataset test case: allowing fixtures w. setup/teardown

# Conflicts:
#	doc/closing_chapters/change_log.qbk
2019-02-10 23:25:10 +01:00
Raffi Enficiaud
4738f8eecb Change log 2019-02-10 20:38:50 +01:00
Raffi Enficiaud
1cd5487b32 Added documentation on throwing dataset
Otherwise confusing people.
2019-02-10 20:37:45 +01:00
Raffi Enficiaud
161d62b5fc Change log 2019-02-10 20:25:06 +01:00
Raffi Enficiaud
638f7c1e0a Extended fixture messages for template test cases
Unifying the messages as for the other test-cases
2019-02-10 20:24:01 +01:00
Raffi Enficiaud
0b4eeb22c6 Dataset test case: allowing fixtures w. setup/teardown
Also the context is now spread to the fixture as well.
2019-02-10 20:23:52 +01:00
Raffi Enficiaud
7ebd826176 Merge branch 'develop'
* develop: (39 commits)
  Change log
  Rewrite example22 and example23
  Change log
  Fixing the command line parsing
  Change log
  Preventing the compiler to optimize out the duplicate strings
  Change log
  Deprecating boost.test minimal.hpp header
  Change log
  Using boost/core facility to silence unused variables
  Check for non-used variables when NDEBUG is defined
  Change log
  Removed second declaration
  Change log
  Fix missing vsnprintf errors on MinGW.
  Adding requires to bjam/examples
  Change log
  Suppress color setup warnings
  Change log
  Deregistration of global objects at framework shutdown time
  ...
2019-02-08 14:39:51 +01:00
Raffi Enficiaud
ae1a6c608b Merge branch 'topic/floating-point-comparison-issues' into next-internal
* topic/floating-point-comparison-issues:
  Change log
  Relaxed tolerance based comparisons
2019-02-08 03:26:52 +01:00
Raffi Enficiaud
6078a93239 Change log 2019-02-08 01:41:44 +01:00
Raffi Enficiaud
80d342a806 Relaxed tolerance based comparisons
It is now possible to compare a type that is tolerance based together
with a type that is not necessarily tolerance based but still
arithmetic.

Doc update and tests.
2019-02-08 01:32:54 +01:00
Raffi Enficiaud
d803b0068f Merge branch 'topic/GH-199-runtime-type_mismatch-after-upgrade' into next-internal
* topic/GH-199-runtime-type_mismatch-after-upgrade:
  Change log
  Default visibility for enums and rtti objects facility
2019-02-08 00:01:38 +01:00
Raffi Enficiaud
78b21a159a Change log 2019-02-08 00:00:57 +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