Allow to clear an specific test case
[anna.git] / include / anna / testing / TestCase.hpp
index 6eab8df..d17a9f8 100644 (file)
@@ -42,7 +42,7 @@ namespace testing {
 class TestCase {
 
   void assertInitialized() const noexcept(false);
-  void assertMessage(const anna::DataBlock &db, bool toEntity) noexcept(false);
+  std::string assertMessage(const anna::DataBlock &db, bool toEntity) noexcept(false);
 
 public:
 
@@ -124,6 +124,7 @@ public:
 
   // getters
   const unsigned int &getId() const { return a_id; }
+  const std::string &getKey() const { return a_key; }
   const std::string &getDescription() const { return a_description; }
 
   // setters
@@ -145,6 +146,7 @@ public:
 private:
   // private members:
   unsigned int a_id;
+  std::string a_key;
   std::string a_description;
   std::vector<TestStep*> a_steps;
   std::vector<TestStep*>::const_iterator a_stepsIt;