Boost C++ Libraries Home Libraries People FAQ More

Next

Chapter 1. Boost.Test

Richard Thomson

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)

Table of Contents

Motivation
How To Read This Documentation
Tutorials
Hello, Test!
Testing with Exceptions
Testing with Fixtures
Running Selected Tests
User's Guide
Compilation and Usage Variants
Minimal Header
main
Header Only
Static Library
Shared Library
Test Case Design and Maintenance
Acceptance Tests and Unit Tests
Testing File I/O
Mocking Collaborators
Testing main
Testing Protected or Private Members
Manually Registering Test Cases and Suites
Reference
Configuration Macros
Test Cases
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE_EXPECTED_FAILURES
BOOST_AUTO_TEST_CASE_TEMPLATE
BOOST_FIXTURE_TEST_CASE
BOOST_GLOBAL_FIXTURE
BOOST_PARAM_TEST_CASE
BOOST_PARAM_CLASS_TEST_CASE
BOOST_TEST_CASE
BOOST_TEST_CASE_TEMPLATE
BOOST_TEST_CASE_TEMPLATE_FUNCTION
Test Suites
BOOST_AUTO_TEST_SUITE
BOOST_AUTO_TEST_SUITE_END
BOOST_FIXTURE_TEST_SUITE
BOOST_TEST_MODULE
BOOST_TEST_SUITE
Test Classes
predicate_result
test_unit
test_case
test_suite
master_test_suite_t
test_observer
unit_test_log_t
unit_test_log_formatter
init_unit_test_func
unit_test_main
Test Assertions
Assertion Levels
BOOST_level_BITWISE_EQUAL
BOOST_level_CLOSE
BOOST_level_CLOSE_FRACTION
BOOST_level_EQUAL
BOOST_level_EQUAL_COLLECTIONS
BOOST_level_EXCEPTION
BOOST_FAIL
BOOST_level_GE
BOOST_level_GT
BOOST_level_LE
BOOST_level_LT
BOOST_level_MESSAGE
BOOST_level_NE
BOOST_level_NO_THROW
BOOST_level_PREDICATE
BOOST_level_SMALL
BOOST_level_THROW
BOOST_TEST_DONT_PRINT_LOG_VALUE
Test Runner
Command Line Arguments
--auto_start_dbg
--build_info
--catch_system_errors
--detect_fp_exceptions
--detect_memory_leaks
--log_format
--log_level
--log_sink
--output_format
--random
--report_format
--report_level
--report_sink
--result_code
--run_test
--show_progress
--use_alt_stack
Test Output
Test Log
Test Report
BOOST_TEST_CHECKPOINT
BOOST_TEST_MESSAGE
BOOST_TEST_PASSPOINT

This is the documentation for Boost.Test, a library designed to support automated testing of software generally and unit testing specifically.

Last revised: January 06, 2014 at 04:37:36 GMT


Next