You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pio test results not showing because of wait between tests #5529
there can be a long enough of a wait between test results to cut off previous test results.
steps to reproduce
in test/test_temp/test_temp.c:
int
runUnityTests (void)
{
UNITY_BEGIN ();
RUN_TEST (test_foo);
busy_wait (2); // waits for n seconds
RUN_TEST (test_bar);
RUN_TEST (test_baz);
return UNITY_END ();
}
expected behavior
relevant part of output of pio test:
If you don't see any output for the first 10 secs, please reset board (press reset button)
test/test_temp/test_temp.c:123: test_foo [PASSED]
test/test_temp/test_temp.c:124: test_bar [PASSED]
test/test_temp/test_temp.c:125: test_baz [PASSED]
actual behavior
relevant part of output of pio test:
If you don't see any output for the first 10 secs, please reset board (press reset button)
test/test_temp/test_temp.c:124: test_bar [PASSED]
test/test_temp/test_temp.c:125: test_baz [PASSED]
workaround
this works if the busy wait is enough comparable to what's happening in the individual tests:
int
runUnityTests (void)
{
UNITY_BEGIN ();
busy_wait (2); // waits for n seconds
RUN_TEST (test_foo);
RUN_TEST (test_bar);
RUN_TEST (test_baz);
return UNITY_END ();
}
Could you rerun this with pio test -v and check whether a raw Unity line containing test_foo:PASS appears? The Unity runner prints each received line in verbose mode before attempting to parse it. If the line is there, its exact text could help explain why it was skipped. If it's missing in verbose mode too, the board, framework, and pio --version would help narrow down where to look next.
Activity
hariomkhonde108 commentedon Nov 27, 2026
Could you rerun this with
pio test -vand check whether a raw Unity line containingtest_foo:PASSappears? The Unity runner prints each received line in verbose mode before attempting to parse it. If the line is there, its exact text could help explain why it was skipped. If it's missing in verbose mode too, the board, framework, andpio --versionwould help narrow down where to look next.