Boost logo

Boost-Build :

Subject: Re: [Boost-build] Leave target on failure?
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-12-11 02:52:28


Johan Nilsson wrote:
> Hi,
> I've discovered a "minor" design flaw in my NUnit generator under
> development (same as previously discussed here).
> The generator generates two main outputs (if XML output is activated):
> - The "target name".nunit file, used to detect if the tests are
> up-to-date
> and were run successfully.
> - The XML report, used to store details on tests run and their
> success.
> Now, when one or more of the tests fail at runtime, the XML report is
> deleted as well - which is obviously not what I'd like. What would be
> the
> best design for allowing to leave the XML report behind, if:
> 1. The tests are actually run (no problems with e.g. the test runner
> not
> being able to find or load the shared libraries containing the tests,
> or
> their runtime dependencies).
> 2. One or more of the tests fail at runtime (the test runner then
> exits with
> a non-zero status code).
> If (1) above fails, i.e. there is a problem with the actual runner
> execution, I think the XML report should get deleted as no tests were
> actually created.
> Any comments / design suggestions?
> / Johan
> _______________________________________________
> Unsubscribe & other changes:

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at