2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-27 07:22:11 +00:00
Files
test/doc/faq.htm
Gennadiy Rozental a10d70cb3c Documentation default pallete changed to white
Components examples and test page introduced and incorporated
Several spelling errors fixed


[SVN r17359]
2003-02-13 08:49:38 +00:00

80 lines
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Frequently Asked Questions</TITLE>
<LINK rel="stylesheet" type="text/css" href="style/btl-white.css" media="screen">
<LINK rel="stylesheet" type="text/css" href="style/btl-print.css" media="print">
<META http-equiv="Content-Language" content="en-us">
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<BODY>
<DIV class="centered">
<TABLE class="body-table" cellspacing="3" >
<TR>
<TD id="body"> <A name='TOP'><IMG src='../../../c++boost.gif' width='277' height='86' alt="Boost logo"></A>
<H1>Boost Test Library: frequently asked questions</H1>
<UL>
<LI><A href="#Item 1">Where the latest version of the Boost Test Library is
located?</A></LI>
<LI><A href="#Item 2">I found a bug. Where could I report it?</A></LI>
<LI><A href="#Item 3">I have a request for a new feature. Where could I ask for it?</A></LI>
<LI><A href="#Item 4">How to create test case?</A></LI>
<LI><A href="#Item 5">How to create test suite?</A></LI>
<LI><A href="#Item 7">Why did I get a linker error when compiling my test program?</A></LI>
<LI><A href="#Item 7">How could I redirect testing output?</A></LI>
<LI><A href="#Item 8">I want different default log trace level</A></LI>
</UL>
<H2><A name="Item 1">Where the latest version of the Boost Test Library is
located?</A></H2>
<P class="1-line-indented">The latest version of Boost Test Library is available
online on <A href="http://www.boost.org">www.boost.org</A>.</P>
<H2><A name="Item 2">I found a bug. Where could I report it?</A></H2>
<P class="1-line-indented">Send a bug report to <A href='mailto:rogeeff@emailaccount.com'>Gennadiy
Rozental</A>.</P>
<H2><A name="Item 3">I have a request for a new feature. Where could I ask for it?</A></H2>
<P class="1-line-indented">You can send a request to <A href='mailto:rogeeff@emailaccount.com'>Gennadiy
Rozental</A>.</P>
<H2><A name="Item 4">How to create test case?</A></H2>
<P class="1-line-indented">To create a test case use the macro BOOST_TEST_CASE( test_function
). For more details see <A href="unit_test_framework.htm#Components">Unit test
framework</A> documentation.</P>
<H2><A name="Item 5">How to create test suite?</A></H2>
<P class="1-line-indented">To create a test suite use the macro BOOST_TEST_SUITE(
suite_name ). For more details see <A href="unit_test_framework.htm#TestSuite">Unit
test framework</A> documentation.</P>
<H2><A name="Item 6">Why did I get a linker error when compiling my test program?</A></H2>
<P class="1-line-indented">Boost Test Library is implemented offline.
To create a test program you should link with the one of the precompiled
library components or use "included" version of the component located
in a boost/test/included directory. For example, to use Test Execution
Monitor you may either include the &lt;boost/test/test_tools.hpp&gt;
and link with libtest_exec_monitor.lib or you could include &lt;boost/test/included/test_exec_monitor.hpp&gt;
in which case you would not need to link with any precompiled component.
Note also that you should strictly follow specification on integration
function in other case some compilers may produce linker error like
this:
<P>
<P>Unresolved external 'init_unit_test_suite(int, char * *).</P>
<P>The reasons for this error is that in your implementation you should specify second
argument of init_unit_test_suite exactly as in a specification, i.e.: char* [].</P>
<H2><A name="Item 7">How could I redirect testing output?</A></H2>
<P class="1-line-indented">Use unit_test_log::instance().set_log_output( std::ostream&amp;
). For more details see <A href="unit_test_framework.htm#TestLog">Unit test framework</A>
documentation.</P>
<H2><A name="Item 8">I want different default log trace level</A></H2>
<P class="1-line-indented">Use environment variable BOOST_TEST_LOG_LEVEL to define
desired log trace level. You still will be able to reset this value from the command
line. For the list of acceptable values see <A href="unit_test_framework.htm#FrameworkParameters">Unit
test framework</A> documentation. </P>
<DIV class="footer">
<P>&copy <A href='mailto:rogeeff@emailaccount.com'>Gennadiy Rozental</A> 2001-2002
</P>
<P>Revised: 12 February, 2003</P>
</DIV>
</TD>
</TR>
</TABLE>
</DIV>
</BODY>
</HTML>