File: faq.html

package info (click to toggle)
boost 1.34.1-14
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 116,412 kB
  • ctags: 259,566
  • sloc: cpp: 642,395; xml: 56,450; python: 17,612; ansic: 14,520; sh: 2,265; yacc: 858; perl: 481; makefile: 478; lex: 94; sql: 74; csh: 6
file content (90 lines) | stat: -rw-r--r-- 5,548 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Boost Test Library: FAQ</TITLE>
<LINK rel="stylesheet" type="text/css" href="style/btl.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="header"> <A href="index.html">Boost.Test</A> &gt; <SPAN class="current_article">FAQ</SPAN> </DIV> 
<DIV class="body"> <IMG src='btl1.gif' width="252" height="43" alt="Boost Test logo"> 
  <H1 class="subtitle">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> 
    <LI><A href="#Item_9">Is there dll version of Boost.Test components available
        on Win32 platform?</A></LI> 
  </UL> 
  <H2><A name="Item_1">Where the latest version of the Boost Test Library is
      located?</A></H2> 
  <P class="first-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="first-line-indented">Send a bug report to <A href="mailto:boost-test%20at%20emailaccount%20dot%20com%20%28please%20unobscure%29">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="first-line-indented">You can send a request to <A href="mailto:boost-test%20at%20emailaccount%20dot%20com%20%28please%20unobscure%29">Gennadiy
      Rozental</A>.</P> 
  <H2><A name="Item_4">How to create test case?</A></H2> 
  <P class="first-line-indented">To create a test case use the macro BOOST_AUTO_TEST_CASE(
    test_function ). For more details see the <A href="components/utf/components/test_case/index.html">Unit
    Test Framework</A> documentation.</P> 
  <H2><A name="Item_5">How to create test suite?</A></H2> 
  <P class="first-line-indented">To create a test suite use the macro BOOST_AUTO_TEST_SUITE(
    suite_name ). For more details see the <A href="components/utf/components/test_suite/index.html">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="first-line-indented">Boost Test Library is intended to be used off-line.
    To create a test program you should link with the one of the precompiled
    library components or use &quot;included&quot; version of the component located
    in a boost/test/included directory. For example, to use Unit Test Framework
     you may either include the &lt;boost/test/unit_test.hpp&gt; and link with
    libunit_test_framework.lib or you could include &lt;boost/test/included/unit_test.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="first-line-indented">Use unit_test_log::instance().set_log_output(
    std::ostream&amp; ). For more details see the <A href="components/utf/components/test_log/index.html">Unit
    Test Framework </A>documentation.</P> 
  <H2><A name="Item_8">I want different default log trace level</A></H2> 
  <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 <A href="components/utf/parameters/log_level.html">Unit
    Test Framework</A> documentation. </P> 
  <H2><A name="Item_9">Is there DLL version of Boost.Test components available
      on Win32 platform?</A></H2> 
  <P class="first-line-indented">No. At the moment Boost Test components could
    not be compiled into dlls to be loaded at runtime.</P> 
</DIV> 
<DIV class="footer"> 
  <DIV class="footer-body"> 
    <P> &copy; <A name="Copyright">Copyright</A> <A href="mailto:boost-test%20at%20emailaccount%20dot%20com%20%28please%20unobscure%29">Gennadiy
        Rozental</A> 2001-2006. <BR> 
      Distributed under the Boost Software License, Version 1.0.
      (See accompanying file <A href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A> or
      copy at <A href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</A>)</P> 
    <P>Revised:
      <!-- #BeginDate format:Sw1 -->8 March, 2006<!-- #EndDate --> 
    </P> 
  </DIV> 
</DIV> 
</BODY>
</HTML>