Commit Graph

164 Commits

Author SHA1 Message Date
Raffi Enficiaud
bee1a4076b Removing references to deprecated headers
- doc changes
- unit test changes
2019-07-21 13:49:25 +02:00
Raffi Enficiaud
17ce78b0fe More about datasets and delayed ones 2019-03-24 17:41:37 +01:00
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
aae67d2ac2 Removing the need for samples from datasets 2019-02-15 13:39:54 +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
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
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
c63640cef1 Rewrite example22 and example23
- Functions being optimized: making functions having side-effects to prevent
  optimizations to remove the calls.
- UB (divide by zero) is compiler implementation specific and does not raise
  an exception on CLANG, rewrite the test to serve the purpose of the
  boost.test macro.
2019-02-04 21:59:08 +01:00
Raffi Enficiaud
061e089bf9 Disabling optimization example22/example23 2019-02-02 00:38:49 +01:00
Raffi Enficiaud
b7c137a5b8 Example29: being able to save the pattern 2019-02-02 00:37:59 +01: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
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
nk
ce0db6c0a1 Fix exception_api.run-fail.cpp doc example 2018-06-20 15:46:36 +02:00
Raffi Enficiaud
3dcba76f27 Updating the doc 2018-01-18 14:49:03 +01:00
Raffi Enficiaud
77bda1ffd2 Avoiding duplicate test cases in template and param test cases
- fixing logging on non-existant stream
- fixing doc test cases with duplicate test cases
- updating log and report tests
2018-01-02 20:41:32 +01:00
Aaron Gorenstein
26d11fac07 Added BOOST_MSVC version check to test patches 2017-12-25 16:54:53 +01:00
Aaron Gorenstein
0f4c3f0019 Deliberate-failure tests shouldn't be optimized
A few tests designed to deliberately fail appeal to UB (undefined
behavior), but as the MSVC optimizer improves we will take advantage of
that to remove UB statements. In order for deliberate failures to occur,
the tests must have the optimizer turned off.
2017-12-25 16:54:53 +01:00
Raffi Enficiaud
7a18764466 Documentation update 2017-07-14 12:44: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
e7c9464d62 Documenting the customization point 2017-03-09 15:47:05 +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
ccd9b7b7c1 Addressing the issues of the inspection report
from here http://boost.cowic.de/rc/docs-inspect-develop.html#test
2016-11-19 15:06:27 +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
bfb7f4de7a Updating the DATASET documentation wrt. sample named test-cases
- updating the output of the DATASET associated examples
2016-09-06 01:16:26 +02:00
Raffi Enficiaud
32d032539f Doc: updating the expected exceptions message 2016-02-17 00:01:42 +01:00
Raffi Enficiaud
634722127a Merge branch 'topic/warning-removal-from-pedantic' into develop
* topic/warning-removal-from-pedantic:
  some warnings in pedantic mode
2016-01-27 23:41:39 +01:00
Raffi Enficiaud
1d72b5f7c5 some warnings in pedantic mode 2016-01-26 22:45:00 +01:00
Raffi Enficiaud
a916f51836 fixup test cases 2016-01-24 01:01:03 +01:00
Raffi Enficiaud
7645cc01b0 Merge branch 'topic/doc-list-labels-content-update' into develop
* topic/doc-list-labels-content-update:
  fix
  cleanup
  Doc: list_content/list_label enhancement
  small bug with DOT output fixed
  Better message in case of precondition failed
  example for list_content
  Doc: General content on list_labels/list_content switch Doc: reference updates Doc: shorter lines

Conflicts:
	doc/testing_tools/boost_test_universal_macro.qbk
2015-10-27 17:03:38 +01:00
Raffi Enficiaud
9fc4215abb Merge branch 'topic/new-cla-cleaned' into develop
* topic/new-cla-cleaned:
  Updated changelog
  Allow some foreign token in between boost.test arguemnts for backward compatibility
  Copyright updates
  Doc: change log update
  C++03 compatibility
  Doc: updates for new cla
  Parameters updates for new cla
  Cleanup: utils namespace
  New CLA cont.
  Named parameters refactoring + tests
  New CLA
2015-10-27 17:00:49 +01:00
Raffi Enficiaud
066dc2a646 Doc: default to __UTF__ lexicographical compare for containers with extended diagnostic
- doc of BOOST_TEST_SPECIALIZED_COLLECTION_COMPARE
- example
2015-10-27 15:38:43 +01:00
Raffi Enficiaud
1af827aa26 cleanup 2015-10-27 14:34:38 +01:00
Raffi Enficiaud
24ba456f9b Doc: list_content/list_label enhancement
- Adding the example and a visual output (DOT) and textual output
- Adding the legend
- SVGs are not rendered properly by quickbook, so the text contains a PNG
2015-10-27 14:34:38 +01:00
Raffi Enficiaud
c54743e06d Merge branch 'topic/new-cla-cleaned' into topic/doc-list-labels-content-update
* topic/new-cla-cleaned:
  Allow some foreign token in between boost.test arguemnts for backward compatibility
  Copyright updates
  Doc: change log update
  C++03 compatibility
  Doc: updates for new cla
  Parameters updates for new cla
  Cleanup: utils namespace
  New CLA cont.
  Named parameters refactoring + tests
  New CLA

Conflicts:
	doc/runtime_configuration/runtime_config_reference.qbk
2015-10-27 10:15:18 +01:00
Gennadiy Rozental
d3d6c42dfe small bug with DOT output fixed 2015-10-20 15:00:42 +02:00
Raffi Enficiaud
71bde4c4f3 example for list_content 2015-10-20 15:00:42 +02:00
Gennadiy Rozental
576854bd1c Parameters updates for new cla 2015-10-20 15:00:23 +02:00
Raffi Enficiaud
9dead6da67 Dataset: avoid the use of virtual functions 2015-10-19 14:47:49 +02:00
Raffi Enficiaud
5655c491a6 Revert "after testing"
This reverts commit a733f30a31.
2015-10-08 03:28:28 +02:00
Raffi Enficiaud
56d7c84624 Revert "eliminate use of virtual functions in dataset interface"
This reverts commit 326fae928e, reversing
changes made to c53a3b4e0d.
2015-10-08 03:27:25 +02:00
Raffi Enficiaud
88b6976710 Revert "Linux warning and errors addressed"
This reverts commit 83289d7db6, reversing
changes made to 25aef40dd0.
2015-10-08 03:12:38 +02:00
Gennadiy Rozental
83289d7db6 Linux warning and errors addressed 2015-10-03 00:01:26 -04:00
Gennadiy Rozental
326fae928e eliminate use of virtual functions in dataset interface 2015-09-25 03:40:41 -04:00
Gennadiy Rozental
a733f30a31 after testing 2015-09-24 02:41:37 -04:00
Raffi Enficiaud
e41a29bb32 Don't know what would be the best option for the examples: either a "generic" example in which case the reader cannot load the example file (minor as the file is visible in the doc) or the full name of the example (hard to maintain). 2015-09-17 15:11:46 +02:00
Raffi Enficiaud
447b6d6b30 line endings 2015-09-17 15:09:04 +02:00
Raffi Enficiaud
2c6dcdb247 Exception correctness testing section
- clarify the reference section
- emphasises the BOOST_<level>_THROW behaviour wrt. unexpected exceptions
- full example for API testing
- renaming cpp files
- adding examples
2015-09-17 15:07:48 +02:00
Gennadiy Rozental
0d3e74fb8d more warnings cleanup 2015-06-27 18:19:29 -04:00
Gennadiy Rozental
743c67845f Avoid some warnings 2015-06-27 17:54:32 -04:00