Releases: erbsland-dev/erbsland-unittest
Releases · erbsland-dev/erbsland-unittest
Modernization and Bug Fixes in Meta Generator
Modernization:
- Replaced complex
REQUIRE…
macros with newrequire…
methods on the assert context. These methods take a lambda that executes the expression and handles all exceptions. - This change simplifies unit tests significantly and allows IDEs to interpret the code more efficiently.
- Expressions are now encapsulated in a lambda:
[&, this]() { … }
, capturing variables by reference andthis
. - No issues were found in our existing unit tests, even though expressions are no longer directly in the test function's scope.
- Downside: Each context adds two extra stack entries, but they are easy to identify in stack traces and we think they shouldn't pose a problem.
Bug Fixes:
- Improved the regular expression for detecting test classes in scanned code files to correctly handle base classes with namespaces.
- Fixed an issue where the same regex failed to match the
final
keyword after a class name.
v1.1.0
Improving the Mata Data Script for the CMake Build:
- Adding the macro
UNITTEST_SUBCLASS
to automatically register unit test classes that are indirectly derived from theUnitTest
class. - Updated generate_unittest_metadata.py to use consistent double quotes for all strings.
- Enhanced the handling and checking of input files and added a new _paths_to_check method.
- Improved
RE_TEST_CLASS
andRE_TEST_METHOD
regex patterns for better readability. - Modified Macros.hpp to add
UNITTEST_SUBCLASS
macro definition.
Documentation Updates:
- Adding the
UNITTEST_SUBCLASS
macro description. - Rewriting, reorganizing and rephrasing the documentation to make it easier to follow and understand.
v1.0.6: Clarify and simplify copyright and LGPL license
- Update the copyright header in all source files with a simplified version that uses the SPDX license identifier for the LGPL. - Combining the two copyright holders into a single line. - Add the `COPYRIGHT.md` file that clarify who’s holding the copyright and the special propietary use exception for one copyright holder. - Adding the GPL license along with the LGPL addendum. - No functional changes were made to the source code.
v1.0.5: Adjusting the README for the new documentation
- Changing the links. - Summarize the requirements.
v1.0.4: Minor enhancements and fixes.
- Fixing copyright headers that were applied by the IDE. - Update the include generator script with the latest version that uses a TOML configuration.
v1.0.3
Update the founding file.
v1.0.0
This is the initial and stable public release of the Erbsland UnitTest library.