aboutsummaryrefslogtreecommitdiff
path: root/framework/Framework.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Framework.cpp')
-rw-r--r--framework/Framework.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/framework/Framework.cpp b/framework/Framework.cpp
index 343168426c..f2ecff98f4 100644
--- a/framework/Framework.cpp
+++ b/framework/Framework.cpp
@@ -127,6 +127,31 @@ void Framework::pop_suite()
_test_suite_name.pop_back();
}
+void Framework::add_test_info(std::string info)
+{
+ _test_info.emplace_back(std::move(info));
+}
+
+void Framework::clear_test_info()
+{
+ _test_info.clear();
+}
+
+bool Framework::has_test_info() const
+{
+ return !_test_info.empty();
+}
+
+void Framework::print_test_info(std::ostream &os) const
+{
+ os << "CONTEXT:\n";
+
+ for(const auto &str : _test_info)
+ {
+ os << " " << str << "\n";
+ }
+}
+
void Framework::log_test_start(const std::string &test_name)
{
if(_printer != nullptr)