Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fixed bug with listing test cases

Commit
1b96cec8f270de5e3d0aee1a77c93b0e790bda1d
Author
Phil Nash ·
Parents
01f3dfffbc3c

Files · Download .tar.gz

Changes

 internal/catch_list.hpp     | 4 ++--
 internal/catch_registry.hpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/internal/catch_list.hpp b/internal/catch_list.hpp
index a0c53715..476f45fe 100644
--- a/internal/catch_list.hpp
+++ b/internal/catch_list.hpp
@@ -28,7 +28,7 @@ namespace Catch
             for(; it != itEnd; ++it )
             {
                 // !TBD: consider listAs()
-                std::cout << "\t" << it->first << " '" << it->second->getDescription() << "'\n";
+                std::cout << "\t" << it->first << "\n\t\t'" << it->second->getDescription() << "'\n";
             }
             std::cout << std::endl;
         }
@@ -40,7 +40,7 @@ namespace Catch
             for(; it != itEnd; ++it )
             {
                 // !TBD: consider listAs()
-                std::cout << "\t" << it->getName() << " '" << it->getDescription() << "'\n";
+                std::cout << "\t" << it->getName() << "\n\t\t '" << it->getDescription() << "'\n";
             }
             std::cout << std::endl;
         }
diff --git a/internal/catch_registry.hpp b/internal/catch_registry.hpp
index 64e91322..9325e4eb 100644
--- a/internal/catch_registry.hpp
+++ b/internal/catch_registry.hpp
@@ -42,7 +42,7 @@ public:
         }
     }
         
-    std::vector<TestCaseInfo> getAllTests() const
+    const std::vector<TestCaseInfo>& getAllTests() const
     {
         return m_functionsInOrder;
     }