From 556ed5dd739d32339a5e791b6d9d173c4779fff5 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Fri, 13 Feb 2026 18:23:43 -0500 Subject: [PATCH] xo-interpreter2: utest: log test names --- .../utest/VirtualSchematikaMachine.test.cpp | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/xo-interpreter2/utest/VirtualSchematikaMachine.test.cpp b/xo-interpreter2/utest/VirtualSchematikaMachine.test.cpp index 90f18551..7c31d645 100644 --- a/xo-interpreter2/utest/VirtualSchematikaMachine.test.cpp +++ b/xo-interpreter2/utest/VirtualSchematikaMachine.test.cpp @@ -64,7 +64,9 @@ namespace xo { namespace ut { TEST_CASE("VirtualSchematikaMachine-ctor", "[interpreter2][VSM]") { - scope log(XO_DEBUG(true)); + const auto & testname = Catch::getResultCapture().getCurrentTestName(); + + scope log(XO_DEBUG(true), xtag("test", testname)); VsmConfig cfg; VirtualSchematikaMachine vsm(cfg); @@ -83,7 +85,9 @@ namespace xo { TEST_CASE("VirtualSchematikaMachine-const1", "[interpreter2][VSM]") { - scope log(XO_DEBUG(true)); + const auto & testname = Catch::getResultCapture().getCurrentTestName(); + + scope log(XO_DEBUG(true), xtag("test", testname)); VsmConfig cfg; VirtualSchematikaMachine vsm(cfg); @@ -118,7 +122,9 @@ namespace xo { TEST_CASE("VirtualSchematikaMachine-const2", "[interpreter2][VSM]") { - scope log(XO_DEBUG(true)); + const auto & testname = Catch::getResultCapture().getCurrentTestName(); + + scope log(XO_DEBUG(true), xtag("test", testname)); VsmConfig cfg; VirtualSchematikaMachine vsm(cfg); @@ -155,7 +161,9 @@ namespace xo { TEST_CASE("VirtualSchematikaMachine-arith1", "[interpreter2][VSM]") { - scope log(XO_DEBUG(true)); + const auto & testname = Catch::getResultCapture().getCurrentTestName(); + + scope log(XO_DEBUG(true), xtag("test", testname)); VsmConfig cfg; VirtualSchematikaMachine vsm(cfg); @@ -270,7 +278,9 @@ namespace xo { TEST_CASE("VirtualSchematikaMachine-apply2", "[interpreter2][VSM]") { - scope log(XO_DEBUG(false)); + const auto & testname = Catch::getResultCapture().getCurrentTestName(); + + scope log(XO_DEBUG(false), xtag("test", testname)); VsmConfig cfg; VirtualSchematikaMachine vsm(cfg);