What problem does it solve?
The Erbsland Unit Test Skill provides a cohesive pattern and entry point to define, organize, and execute C++ unit tests using the Erbsland Unit Test framework, reducing setup friction and ensuring consistent conventions across projects.
Core Features & Use Cases
- Establishes a standard test suite layout, naming conventions (e.g., SomethingTest with testSomething methods), and macros (REQUIRE, CHECK, WITH_CONTEXT, runWithContext) for robust diagnostics.
- Integrates with CMake using erbsland_unittest targets, enabling centralized test compilation, discovery, and filtered execution by name, target, or tag.
- Includes documented patterns for modular test design, helper subclasses, and diagnostic output via additionalErrorMessages() to simplify debugging.
Quick Start
Create a new test file named SomethingTest.cpp, include the Erbsland Unit Test header, declare a final test class SomethingTest deriving from UNITTEST_SUBCLASS or el::UnitTest, implement at least one public test method starting with 'test', and run the unittest target.