diff --git a/doc/v2/test.qbk b/doc/v2/test.qbk index 42863a61..eb2b863f 100644 --- a/doc/v2/test.qbk +++ b/doc/v2/test.qbk @@ -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] diff --git a/doc/v2/test_organization/parametric_test_case_generation.qbk b/doc/v2/test_organization/parametric_test_case_generation.qbk index a8303039..405b9977 100644 --- a/doc/v2/test_organization/parametric_test_case_generation.qbk +++ b/doc/v2/test_organization/parametric_test_case_generation.qbk @@ -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] diff --git a/doc/v2/test_organization/reference.qbk b/doc/v2/test_organization/reference.qbk index 739cd4cf..2a291df8 100644 --- a/doc/v2/test_organization/reference.qbk +++ b/doc/v2/test_organization/reference.qbk @@ -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]