[Boost-bugs] [Boost C++ Libraries] #1669: Add more unit tests

Subject: [Boost-bugs] [Boost C++ Libraries] #1669: Add more unit tests
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-03-04 16:24:11


#1669: Add more unit tests
-------------------------------------+--------------------------------------
 Reporter: stefan | Owner: hkaiser
     Type: Feature Requests | Status: new
Milestone: Boost 1.36.0 | Component: wave
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 The wave test suite is right now somewhat incomplete. There are no tests
 checking that the generated output stream is valid. Also, no tests exist
 to make sure the various callbacks (e.g. trace policy) receive correct
 arguments.

 For the first (conforming output) I'd suggest to simple provide input that
 doesn't require any preprocessing, and making sure the generated output is
 identical to that. (This helps detect and eliminate any wrong whitespace
 insertion.)
 Obviously it's also important to make sure output generation *with* macro
 expansion (etc.) is conform, i.e. the right #line markers are generated
 and so forth.

 For the second set of tests I'd suggest to write a trace policy that logs
 to some stream, and then let the test make sure that log corresponds to
 expected values. (This requires that for each new test a developer
 manually generates (and validates) a reference log, per input file.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1669>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC