mirror of
https://github.com/boostorg/test.git
synced 2026-01-26 07:02:12 +00:00
A reference on the dataset macro + updating the links
This commit is contained in:
@@ -119,6 +119,7 @@
|
||||
[def __BOOST_TEST_SUITE__ [link ref_BOOST_TEST_SUITE `BOOST_TEST_SUITE`]]
|
||||
[def __BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES__ [link ref_BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES `BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES`]]
|
||||
|
||||
|
||||
[/ fixtures]
|
||||
[def __BOOST_FIXTURE_TEST_CASE__ [link ref_fixture_test_case `BOOST_FIXTURE_TEST_CASE`]]
|
||||
[def __BOOST_FIXTURE_TEST_SUITE__ [link ref_fixture_test_suite `BOOST_FIXTURE_TEST_SUITE`]]
|
||||
@@ -129,7 +130,7 @@
|
||||
|
||||
|
||||
[/ parametrized test cases]
|
||||
[def __BOOST_DATA_TEST_CASE__ [link boost_test.users_guide.tests_organization.test_cases.test_case_generation.datasets_auto_registration `BOOST_DATA_TEST_CASE`]]
|
||||
[def __BOOST_DATA_TEST_CASE__ [link boost_test.users_guide.tests_organization.test_org_reference.test_org_boost_test_dataset `BOOST_DATA_TEST_CASE`]]
|
||||
|
||||
|
||||
[/ runtime/cla parameters]
|
||||
|
||||
@@ -308,7 +308,7 @@ BOOST_DATA_TEST_CASE(test_case_name, dataset, var1, ...) { /* test body */ }
|
||||
The first form of the macro above declares automatically a variable named `sample` in the body of the test case, which takes the values of elements in the dataset. An example would be:
|
||||
[snippet_dataset1_1]
|
||||
|
||||
If specified, the name of the variable `sample` may be replaced by the first parameter take comes after the dataset:
|
||||
If specified, the name of the variable `sample` may be replaced by the first parameter that comes after the dataset:
|
||||
[snippet_dataset1_2]
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
[/
|
||||
/ Copyright (c) 2003-2014 Gennadiy Rozental
|
||||
/ Copyright (c) 2014 Raffi Enficiaud
|
||||
/
|
||||
/ Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
/ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
/]
|
||||
|
||||
[section:test_org_reference Reference]
|
||||
|
||||
|
||||
@@ -36,7 +44,11 @@
|
||||
]
|
||||
|
||||
|
||||
[/ BOOST_DATA_TEST_CASE]
|
||||
[
|
||||
[__BOOST_DATA_TEST_CASE__]
|
||||
[Declaration of the body of a test case on datasets]
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -93,21 +105,25 @@
|
||||
|
||||
|
||||
[/ Test suites ###############################################################################################]
|
||||
[section:test_org_boost_test_suite BOOST_TEST_SUITE]
|
||||
[section:test_org_boost_test_suite `BOOST_TEST_SUITE`]
|
||||
|
||||
[endsect] [/test_org_boost_test_suite]
|
||||
|
||||
[section:test_org_boost_auto_test_suite BOOST_AUTO_TEST_SUITE]
|
||||
[section:test_org_boost_auto_test_suite `BOOST_AUTO_TEST_SUITE`]
|
||||
|
||||
[endsect] [/test_org_boost_auto_test_suite]
|
||||
|
||||
[section:test_org_boost_auto_test_suite_end BOOST_AUTO_TEST_SUITE_END]
|
||||
[section:test_org_boost_auto_test_suite_end `BOOST_AUTO_TEST_SUITE_END`]
|
||||
|
||||
[endsect] [/test_org_boost_auto_test_suite_end]
|
||||
|
||||
|
||||
|
||||
[section:test_org_boost_test_dataset `BOOST_DATA_TEST_CASE`]
|
||||
|
||||
See [link boost_test.users_guide.tests_organization.test_cases.test_case_generation.datasets_auto_registration here].
|
||||
|
||||
[endsect] [/test_org_boost_test_dataset]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user