diff --git a/HISTORY.rst b/HISTORY.rst index bdda1867..91a0d596 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -44,8 +44,9 @@ Please check `Migration guide from 5.x to 6.0 `__ option (`issue #2891 `_) + - Added a new "test" `build configuration `__ - Added support for test hierarchies (nested test suites) (`issue #4135 `_) + - Generate reports in JUnit and JSON formats using the `pio test --output-format `__ option (`issue #2891 `_) - Provide more information when the native program crashed on a host (errored with a negative return code) (`issue #3429 `_) - Fixed an issue when command line parameters ("--ignore", "--filter") do not override values defined in the |PIOCONF| (`issue #3845 `_) diff --git a/platformio/unittest/runners/unity.py b/platformio/unittest/runners/unity.py index 6e599704..2f811ca3 100644 --- a/platformio/unittest/runners/unity.py +++ b/platformio/unittest/runners/unity.py @@ -249,13 +249,11 @@ void unityOutputComplete(void) { unittest_uart_end(); } for line in data.strip().split("\n"): line = line.strip() if line.endswith(":PASS"): - click.echo("%s\t[%s]" % (line[:-5], click.style("PASSED", fg="green"))) + click.echo("[%s] %s" % (click.style("PASSED", fg="green"), line[:-5])) elif line.endswith(":IGNORE"): - click.echo( - "%s\t[%s]" % (line[:-7], click.style("IGNORED", fg="yellow")) - ) + click.echo("[%s] %s" % (click.style("IGNORED", fg="yellow"), line[:-7])) elif ":FAIL" in line: - click.echo("%s\t[%s]" % (line, click.style("FAILED", fg="red"))) + click.echo("[%s] %s" % (click.style("FAILED", fg="red"), line)) else: click.echo(line)