| 1 | /* ---------------------------------------------------------------------------- |
| 2 | |
| 3 | * GTSAM Copyright 2010, Georgia Tech Research Corporation, |
| 4 | * Atlanta, Georgia 30332-0415 |
| 5 | * All Rights Reserved |
| 6 | * Authors: Frank Dellaert, et al. (see THANKS for the full author list) |
| 7 | |
| 8 | * See LICENSE for the license information |
| 9 | |
| 10 | * -------------------------------------------------------------------------- */ |
| 11 | |
| 12 | /////////////////////////////////////////////////////////////////////////////// |
| 13 | // |
| 14 | // TESTRESULT.H |
| 15 | // |
| 16 | // A TestResult is a collection of the history of some test runs. Right now |
| 17 | // it just collects failures. |
| 18 | // |
| 19 | /////////////////////////////////////////////////////////////////////////////// |
| 20 | |
| 21 | #ifndef TESTRESULT_H |
| 22 | #define TESTRESULT_H |
| 23 | |
| 24 | class Failure; |
| 25 | |
| 26 | class TestResult |
| 27 | { |
| 28 | public: |
| 29 | TestResult (); |
| 30 | virtual ~TestResult() {} |
| 31 | virtual void testsStarted (); |
| 32 | virtual void addFailure (const Failure& failure); |
| 33 | virtual void testsEnded (); |
| 34 | |
| 35 | int getFailureCount() {return failureCount;} |
| 36 | |
| 37 | private: |
| 38 | int failureCount; |
| 39 | }; |
| 40 | |
| 41 | #endif |
| 42 | |