mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
feat(unity_test): print stage number when unity test run
This commit is contained in:
@@ -91,6 +91,13 @@ static int multiple_function_option(const test_desc_t *test_ms)
|
|||||||
}
|
}
|
||||||
selection = atoi((const char *) cmdline) - 1;
|
selection = atoi((const char *) cmdline) - 1;
|
||||||
if (selection >= 0 && selection < test_ms->test_fn_count) {
|
if (selection >= 0 && selection < test_ms->test_fn_count) {
|
||||||
|
UnityPrint("Running stage ");
|
||||||
|
UnityPrintNumber(selection + 1);
|
||||||
|
UnityPrint("...");
|
||||||
|
UNITY_PRINT_EOL();
|
||||||
|
// Unit test runner expects to see test name before the test starts
|
||||||
|
UNITY_OUTPUT_FLUSH();
|
||||||
|
|
||||||
unity_default_test_run(test_ms->fn[selection], test_ms->name, test_ms->line);
|
unity_default_test_run(test_ms->fn[selection], test_ms->name, test_ms->line);
|
||||||
} else {
|
} else {
|
||||||
UnityPrint("Invalid selection, your should input number 1-");
|
UnityPrint("Invalid selection, your should input number 1-");
|
||||||
|
Reference in New Issue
Block a user