mirror of
https://github.com/boostorg/test.git
synced 2026-01-25 06:42:22 +00:00
232 lines
9.3 KiB
HTML
Executable File
232 lines
9.3 KiB
HTML
Executable File
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
<title>Frequently Asked Questions</title>
|
|
<link rel="stylesheet" href="../style/style.css" type="text/css">
|
|
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
|
<link rel="home" href="index.html" title="Boost Test Library">
|
|
<link rel="up" href="intro.html" title="Introduction">
|
|
<link rel="prev" href="intro.html" title="Introduction">
|
|
<link rel="next" href="open-issues.html" title="Open issues">
|
|
<script language="JavaScript1.2" src="../js/boost-test.js"></script>
|
|
</head>
|
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|
<table width="100%"><tr>
|
|
<td width="10%"><a href="index.html"><img alt="Home" width="229" height="61" border="0" src="../../../../libs/test/doc/img/boost.test.logo.png"></a></td>
|
|
<td valign="middle" align="left"> > <a href="intro.html">Introduction</a><a href="utf.html">
|
|
>
|
|
</a><b>FAQ</b><a href="intro.html#btl.portability">
|
|
>
|
|
</a>
|
|
</td>
|
|
<td><div class="spirit-nav">
|
|
<a href="intro.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a href="open-issues.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="section">
|
|
<div class="titlepage"><div><div><h3 class="title">
|
|
<a name="btl.faq"></a>Frequently Asked Questions</h3></div></div></div>
|
|
<div class="qandaset">
|
|
<a name="id526419"></a><dl>
|
|
<dt> <a href="faq.html#id526425">
|
|
Where the latest version of the Boost Test Library is located?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526448">
|
|
I found a bug. Where can I report it?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526472">
|
|
I have a request for a new feature. Where can I ask for it?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526496">
|
|
How to create test case using the Unit Test Framework?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526520">
|
|
How to create test suite using the Unit Test Framework?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526544">
|
|
Why did I get a linker error when compiling my test program?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526587">
|
|
How can I redirect testing output?
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526611">
|
|
I want different default log trace level
|
|
</a>
|
|
</dt>
|
|
<dt> <a href="faq.html#id526635">
|
|
Is there DLL version of Boost.Test components available on Win32 platform?
|
|
</a>
|
|
</dt>
|
|
</dl>
|
|
<table border="0" width="100%" summary="Q and A Set">
|
|
<col align="left" width="0%">
|
|
<col>
|
|
<tbody>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526425"></a><a name="id526428"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
Where the latest version of the Boost Test Library is located?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
The latest version of Boost Test Library is available online at <a href="http://www.boost.org/libs/test" target="_top">http://www.boost.org/libs/test</a>
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526448"></a><a name="id526450"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
I found a bug. Where can I report it?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
You can send a bug report to the boost users' mailing list and/or directly to
|
|
<a href="mailto:boost-test%20=at=%20emailaccount%20=dot=%20com" target="_top">Gennadiy Rozental</a>.
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526472"></a><a name="id526474"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
I have a request for a new feature. Where can I ask for it?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
You can send a request to the boost developers' mailing list and/or directly to
|
|
<a href="mailto:boost-test%20=at=%20emailaccount%20-dot-%20com" target="_top">Gennadiy Rozental</a>.
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526496"></a><a name="id526498"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
How to create test case using the Unit Test Framework?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
To create a test case use the macro BOOST_AUTO_TEST_CASE( test_function ). For more details see the Unit Test Framework
|
|
<a class="link" href="utf/user-guide/test-organization/auto-nullary-test-case.html" title="Nullary function based test case with automated registration">documentation</a>.
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526520"></a><a name="id526522"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
How to create test suite using the Unit Test Framework?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
To create a test suite use the macro BOOST_AUTO_TEST_SUITE( suite_name ). For more details see the Unit Test Framework
|
|
<a class="link" href="utf/user-guide/test-organization/auto-test-suite.html" title="Test suites with automated registration">documentation</a>.
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526544"></a><a name="id526546"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
Why did I get a linker error when compiling my test program?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top">
|
|
<p class="first-line-indented">
|
|
Boost Test Library components provide several usage variants: to create a test program you can
|
|
link with the one of the precompiled library variants or use single-header variant. For example, to use Unit Test
|
|
Framework you may either include the <<a href="../../../../boost/test/unit_test.hpp" target="_top"><code class="filename">boost/test/unit_test.hpp</code></a>>
|
|
and link with libunit_test_framework.lib or you can include <<a href="../../../../boost/test/included/unit_test.hpp" target="_top"><code class="filename">boost/test/included/unit_test.hpp</code></a>>
|
|
, in which case you should not need to link with any precompiled component. Note also that
|
|
you should strictly follow specification on initialization function in other case some compilers may produce linker
|
|
error like this.
|
|
</p>
|
|
<code class="computeroutput">Unresolved external init_unit_test_suite(int, char**).</code><p class="first-line-indented">
|
|
The reason for this error is that in your implementation you should specify second argument of
|
|
init_unit_test_suite exactly as in the specification, i.e.: char* [].
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526587"></a><a name="id526590"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
How can I redirect testing output?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
Use unit_test_log::instance().set_log_output( std::ostream& ). For more details see the Unit Test Framework
|
|
<a class="link" href="utf/user-guide/test-output/log-ct-config.html#utf.user-guide.test-output.log.ct-config.output-stream" title="Log output stream redirection">documentation</a>.
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526611"></a><a name="id526614"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
I want different default log trace level
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-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 the Unit Test Framework
|
|
<a class="link" href="utf/user-guide/runtime-config/reference.html#utf.user-guide.runtime-config.parameters">documentation</a>.
|
|
</p></td>
|
|
</tr>
|
|
<tr class="question">
|
|
<td align="left" valign="top">
|
|
<a name="id526635"></a><a name="id526638"></a>
|
|
</td>
|
|
<td align="left" valign="top"><b><p>
|
|
Is there DLL version of Boost.Test components available on Win32 platform?
|
|
</p></b></td>
|
|
</tr>
|
|
<tr class="answer">
|
|
<td align="left" valign="top"></td>
|
|
<td align="left" valign="top"><p class="first-line-indented">
|
|
Yes. Starting with Boost 1.34.0.
|
|
</p></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|
<td align="left"></td>
|
|
<td align="right"><div class="copyright-footer">Copyright © 2001-2012 Gennadiy Rozental</div></td>
|
|
</tr></table>
|
|
<hr>
|
|
<div class="spirit-nav">
|
|
<a accesskey="p" href="intro.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="intro.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="open-issues.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
|
|
</div>
|
|
</body>
|
|
</html>
|