- #include "tut.h"
- #include "tut_reporter.h"
- namespace tut {
- test_runner_singleton runner;
- }
- int main() {
- tut::reporter reporter;
- tut::runner.get().set_callback(&reporter);
- try {
- tut::runner.get().run_tests();
- } catch (const std::exception& ex) {
- std::cerr << "Exception raised: " << ex.what() << std::endl;
- return 1;
- }
- return 0;
- }