abstract_reporter.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CRUCIBLE_TEST_ABSTRACT_REPORTER_HPP #define CRUCIBLE_TEST_ABSTRACT_REPORTER_HPP #include "crucible/test/outcome.hpp" #include "crucible/test/scenario.hpp" #include <cstddef> namespace crucible::test::abstract_reporter { struct AbstractReporter { virtual ~AbstractReporter(); virtual auto handle_suite_start() -> void = 0; virtual auto handle_suite_end(std::size_t const pass_count, std::size_t const fail_count) -> void = 0; virtual auto handle_scenario_start(scenario::Scenario const &scenario) -> void = 0; virtual auto handle_scenario_end(scenario::Scenario const &scenario, outcome::Outcome const &outcome) -> void = 0; }; } #endif // CRUCIBLE_TEST_ABSTRACT_REPORTER_HPP