Skip to content
thejohnfreeman edited this page Jan 3, 2013 · 1 revision

Reporters handle the results of a series of tests. Each Reporter must inherit from reporter:

class reporter {
  public:
    virtual void success(size_t tests, size_t max_tests,
        size_t trivial = 0,
        distribution&& dist = distribution()) const = 0;
    virtual void failure(size_t tests, const char* reason) const = 0;
};

void success(...) const

  • tests The number of tests passed.
  • max_tests The target number of tests to pass.
  • trivial The number of tests marked trivial by a Classifier.
  • dist The distribution of tests recorded by a Classifier.

void failure(...) const

  • tests The number of tests passed.
  • reason A string explaining the cause of failure (including a string representation of the test case).
Clone this wiki locally