mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
unit_test: Log each test case to console as we run it
Include a dump of the test tags
This commit is contained in:
committed by
Angus Gratton
parent
d35debcd99
commit
0978fc1b84
@@ -279,6 +279,8 @@ def run_unit_test_cases(env, extra_data):
|
||||
Utility.console_log("Download finished, start running test cases", "O")
|
||||
|
||||
for one_case in case_config[ut_config]:
|
||||
Utility.console_log("Running test %s (config %s)" % (one_case["name"], ut_config))
|
||||
Utility.console_log("Tags: %s" % ", ".join("%s=%s" % (k,v) for (k,v) in one_case.items() if k != "name"))
|
||||
performance_items = []
|
||||
# create junit report test case
|
||||
junit_test_case = TinyFW.JunitReport.create_test_case("[{}] {}".format(ut_config, one_case["name"]))
|
||||
@@ -482,6 +484,8 @@ def run_multiple_devices_cases(env, extra_data):
|
||||
for ut_config in case_config:
|
||||
Utility.console_log("Running unit test for config: " + ut_config, "O")
|
||||
for one_case in case_config[ut_config]:
|
||||
Utility.console_log("Running multi-device test '%s' (config %s)" % (one_case["name"], ut_config))
|
||||
Utility.console_log("Tags: %s" % ", ".join("%s=%s" % (k,v) for (k,v) in one_case.items() if k != "name"))
|
||||
result = False
|
||||
junit_test_case = TinyFW.JunitReport.create_test_case("[{}] {}".format(ut_config, one_case["name"]))
|
||||
try:
|
||||
@@ -639,6 +643,8 @@ def run_multiple_stage_cases(env, extra_data):
|
||||
dut.start_app()
|
||||
|
||||
for one_case in case_config[ut_config]:
|
||||
Utility.console_log("Running multi-stage test %s (config %s)" % (one_case["name"], ut_config))
|
||||
Utility.console_log("Tags: %s" % ", ".join("%s=%s" % (k,v) for (k,v) in one_case.items() if k != "name"))
|
||||
performance_items = []
|
||||
junit_test_case = TinyFW.JunitReport.create_test_case("[{}] {}".format(ut_config, one_case["name"]))
|
||||
try:
|
||||
|
Reference in New Issue
Block a user