1 parent
e7186f17f0
commit
f0825fbd1a
13 files changed
+105
-36
No files matched your search
@@ -2,10 +2,10 @@
|
||||
#include "Void/Testing/Config.hpp"
|
||||
#include <Void/Testing/Assert.hpp>
|
||||
#include <Void/Testing/ConsoleReporter.hpp>
|
||||
#include <Void/Testing/Detail/Color.hpp>
|
||||
#include <Void/Stacktrace/Color.hpp>
|
||||
#include <Void/Stacktrace/Stacktrace.hpp>
|
||||
#include <Void/Testing/Detail/Registry.hpp>
|
||||
#include <Void/Testing/Detail/SignalHandler.hpp>
|
||||
#include <Void/Testing/Detail/Stacktrace.hpp>
|
||||
#include <Void/Testing/JUnitReporter.hpp>
|
||||
#include <algorithm>
|
||||
#include <csignal>
|
||||
@@ -161,13 +161,13 @@ namespace Void::Testing
|
||||
result.state = TestState::Failed;
|
||||
result.crash_info =
|
||||
std::format("Unhandled exception: {}", e.what());
|
||||
result.stacktrace =
|
||||
Detail::format_stacktrace(Detail::capture_stacktrace(1, 8));
|
||||
result.stacktrace = Void::Stacktrace::format_stacktrace(
|
||||
Void::Stacktrace::capture_stacktrace(1, 8));
|
||||
} catch (...) {
|
||||
result.state = TestState::Failed;
|
||||
result.crash_info = "Unhandled unknown exception";
|
||||
result.stacktrace =
|
||||
Detail::format_stacktrace(Detail::capture_stacktrace(1, 8));
|
||||
result.stacktrace = Void::Stacktrace::format_stacktrace(
|
||||
Void::Stacktrace::capture_stacktrace(1, 8));
|
||||
}
|
||||
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
@@ -209,9 +209,9 @@ namespace Void::Testing
|
||||
|
||||
RunResult Runner::run(const RunConfig& config)
|
||||
{
|
||||
Detail::Color::g_color_enabled = !config.no_color;
|
||||
Void::Stacktrace::Color::g_color_enabled = !config.no_color;
|
||||
if (config.show_help) {
|
||||
using namespace Detail::Color;
|
||||
using namespace Void::Stacktrace::Color;
|
||||
|
||||
std::cout
|
||||
<< "\n"
|
||||
|
||||
Reference in new issue
Block a user