Replies: 3 comments
-
|
Hi @BlueAndi -- there is a |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mvandervoord, thanks for the hint. Example: void test_MyComponent_myTestCase(void)
{
TEST_MESSAGE("key:value");
....
}results in tests_report.json {
"FailedTests": [],
"PassedTests": [
{
"file": "test/test_MyComponent.c",
"test": "test_MyComponent_myTestCase",
"message": "key:value"
}
....or like {
"FailedTests": [],
"PassedTests": [
{
"file": "test/test_MyComponent.c",
"test": "test_MyComponent_myTestCase",
"key": "value"
}
....googletest example: <testcase name="myTestCase" file="test/testMyComponent.cpp" line="146" status="run" result="completed" time="0.002" timestamp="2025-06-26T00:13:53.765" classname="TSGreet">
<properties>
<property name="key" value="value"/>
</properties>
</testcase> |
Beta Was this translation helpful? Give feedback.
-
|
I guess there is no dedicated solution for what I am searching for, so I created a custom report called by the log factory, see The stdout is parsed via regex to detect the key/value pairs and add by |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The idea is that in the test function, I would like to set a key/value pair, which will be part of the test report.
This is similar to googletest with the record property.
Does something similar exists for Unity? Especially with the log factory report?
Beta Was this translation helpful? Give feedback.
All reactions