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
Unit test runner shows PASSED in summary when there are failing tests #5183
I'm seeing the summary showing as passing when there are failures. Many tests pass, then there's a few failures, and my end-of-test summary looks like this (most names are removed for brevity):
Root Cause:
In platformio/test/cli.py line 201, the print_suite_footer function was hardcoding "PASSED" for any non-error test status. This caused SKIPPED test suites to incorrectly display as PASSED.
The Fix:
Changed to use the actual test_suite.status.name with appropriate color coding via status.to_ansi_color(). Now the footer correctly displays the actual test execution result (PASSED, FAILED, ERRORED, or SKIPPED).
Activity
ssilverman commentedon Jun 26, 2025
Note that the summary also shows "SKIPPED", even when a test ran with some duration and passed. For example:
ssilverman commentedon Jun 26, 2025
Note: I usually run with
pio test -v.Fix: Display actual test suite status instead of hardcoded 'PASSED'
SpacePlushy commentedon Oct 29, 2025
I've identified and fixed the issue!
Root Cause:
In
platformio/test/cli.pyline 201, theprint_suite_footerfunction was hardcoding "PASSED" for any non-error test status. This caused SKIPPED test suites to incorrectly display as PASSED.The Fix:
Changed to use the actual
test_suite.status.namewith appropriate color coding viastatus.to_ansi_color(). Now the footer correctly displays the actual test execution result (PASSED, FAILED, ERRORED, or SKIPPED).PR: #5302
I've tested this with multiple test scenarios and verified it works correctly for all status types.
Extend test for passed/failed suites // Issue #5183
Fix incorrect PASSED status in test suite footer (platformio#5183)
ivankravets commentedon Apr 21, 2026
Thanks for the report! Please re-test with
pio upgrade --dev.Fixed an issue where the test suite status was incorrectly hardcoded …
pio 6.2.0
build(scripts): Bump the python group with 4 updates (#2)