test/framework
Andrew Vaillancourt 4114b15a97 Add structured logging for setup and teardown steps
This change improves test step logging by introducing structured,
visually distinct banners for setup and teardown stages. All three stages —
setup, execution, and teardown — now use consistent formatting and
independent step counters.

Each stage logs with a unique source prefix (TSU, TST, TTD) to enhance
readability and enable grep-friendly, machine-parsable log analysis.

Step counters are reset before each test via pytest_runtest_setup.
Teardown steps can be registered using request.addfinalizer() to ensure
post-test cleanup is consistently logged.

These enhancements improve clarity, support structured debugging, and
make it easier to differentiate test phases in log output.

Test Plan:
- Verified log output for setup, test, and teardown stages.
- Confirmed step counters reset between test cases.
- Manually validated formatting, alignment, and log source prefixes.

Change-Id: I363d6aa10a6d63697c68bd40dd8c08a23c7d96fd
Signed-off-by: Andrew Vaillancourt <andrew.vaillancourt@windriver.com>
2025-06-18 13:59:16 -04:00
..
2025-05-12 09:04:24 -04:00
2025-01-10 14:22:43 -05:00
2025-03-05 15:23:02 -05:00