File: msvc_net.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 (58 lines) | stat: -rw-r--r-- 3,494 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Boost Test Library msvc .net recommendations</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; <A href="recomendations.html">Tutorials and usage recommendations</A> &gt; <SPAN class="current_article">MSVC .NET</SPAN></DIV> 
<DIV class="body"> <IMG src="../btl1.gif" width="252" height="43" alt="Boost Test logo"> 
  <H1 class="subtitle"><SPAN class="first-line-indented">Microsoft Visual Studio
  .NET</SPAN> usage recommendations</H1> 
  <UL>
    <LI><A href="#t1">Use custom build step to automatically start test program after compilation</A></LI>
    <LI><A href="#t2">If you got  fatal exception somewhere within test case, make debugger
      break at the point the failure by adding extra command line argument</A></LI>
  </UL>
  <H5>Use custom build step to automatically start test program after compilation<A name="t1"></A></H5>
  <P class="first-line-indented">I found it most convenient to put test program
    execution as a post-build step in compilation. To do so use project property
    page:</P>
    <IMG src="imgs/post_build_event.jpg" alt="project property page" width="500" height="342">
  <P class="first-line-indented">Full command you need in &quot;Command Line&quot; field
    is: </P>
  <P class="first-line-indented"><EM>&quot;$(TargetDir)\$(TargetName).exe&quot; --result_code=no
  --report_level=no</EM></P>
  <P class="first-line-indented">Note that both report level and result code
    are suppressed. This way the only output you may see from this command are
    possible runtime errors. But the best part is that you could jump through
    these errors using usual keyboard shortcuts/mouse clicks you use for compilation
    error annalists:</P>
  <P><IMG src="imgs/post_build_out.jpg" width="800" height="354">
  </P>
  <H5>If you got  fatal exception somewhere within test case, make debugger
        break at the point the failure by adding extra command line argument<A name="t2"></A></H5>
  <P class="first-line-indented">If you got &quot;memory access violation&quot; message
    (or any other message indication fatal or system error) when you run
    you test, to get more information of error location add --catch_system_errors=no
    to the test run command line:</P>
  <P class="first-line-indented"><IMG src="imgs/run_args.jpg" width="500" height="342"></P>
  <P class="first-line-indented">Now run the test again under debugger and it will break at the point of failure. </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 -->26 February, 2006<!-- #EndDate --> 
    </P> 
  </DIV> 
</DIV> 
</BODY>
</HTML>