Skip to content

pio test results not showing because of wait between tests #5529

Open

Description

@Shoxx98

problem description

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 ();
}

Activity

  1. hariomkhonde108 commented on Nov 27, 2026

    @hariomkhonde108

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions