µTest++ Testing Framework v3.3.0 released
Version 3.3.0 is a new release, adding a TAP reporter.
The µTest++ Testing Framework project is a C++ source code library that provides a lightweight testing framework specifically designed for embedded systems.
Prerequisites
When installed via xpm, this project requires the xPack Prerequisites.
However, like any source code library, this project can also be integrated into another project in the traditional manner, either by copying the relevant files into the target project or by linking the entire project as a Git submodule.
Installation
The most straightforward method to incorporate the @micro-os-plus/micro-test-plus
package into a project is to declare it as a dependency using xpm.
xpm install @micro-os-plus/micro-test-plus@3.3.0 -verbose
Comprehensive instructions are available in the Install Guide.
Source code
Major changes
TAP stands for Test Anything Protocol. It is a simple text-based interface between testing modules in a test harness, decoupling the reporting of errors from the presentation of the results.
The output is also relatively easy to read by humans; it looks like:
TAP version 14
# Subtest: Minimal
# Subtest: Check truth
ok 1 - true
1..1
ok 1 - Check truth # { test case passed, 1 check }
1..1
ok 1 - Minimal # { test suite passed, 1 check in 1 test case, time: 0.007 ms }
1..1
# { total: 1 check passed, 0 failed, in 1 test case, 1 test suite, time: 0.030 ms }
Bug fixes
- None.
Enhancements
Known issues
- None.
Continuous Integration tests
Prior to publication, a suite of tests was executed. The results can be reviewed at:
