Edgewall Software

Changes between Version 3 and Version 4 of Boost Test


Ignore:
Timestamp:
Mar 8, 2007, 2:55:07 PM (17 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Boost Test

    v3 v4  
    11= Using Boost.Test =
    22
    3 If you're developing with C++ [http://www.boost.org boost] is probably a familiar library. As it so happens, it's also a good match for being paired, quite easily, with bitten!
     3If you're developing with C++, [http://www.boost.org boost] is probably a familiar library. As it so happens, it's also a good match for being paired, quite easily, with bitten!
    44
    55By roaming around the wiki (here: DataStorage) you can gather how bitten stores reports, and how ''test'' reports in particular are stored and used. For each test case a number of properties are stored, such as status and the fixture/test suite it belongs to.
     
    88== Gathering the report ==
    99
    10 Fortunately for us, Boost.Test outputs test reports in XML format, if instructed to do so. Thus, the amount of work we have to carry out is reduced to specifying and applying a simple XSL transform!
     10Fortunately for us, Boost.Test outputs test reports in XML format, if instructed to do so. Thus, the amount of work we have to carry out is reduced to specifying and applying a simple XSL transform.
    1111
    1212But before we proceed to the needed transform we have to actually gather the XML data from boost. Suppose the program that runs your tests is called {{{run_tests}}}, then we can get an XML report by running that program as:
     
    5050Use the `<x:transform>` recipe command to do this. An example on how to use it is below. You will, of course, have to put this in your repository somewhere.
    5151
    52 == Cooking up your build recipe ==
     52== Adjusting your recipe to make delicious Boost.Test soup ==
    5353
    5454Here's a template for how to put all of this together in your build recipe: