Serge Huber created UNOMI-912:
---------------------------------
Summary: Progress-aware JUnit runner for ITs with live progress,
ETA, and slowest tests
Key: UNOMI-912
URL: https://issues.apache.org/jira/browse/UNOMI-912
Project: Apache Unomi
Issue Type: Sub-task
Components: unomi(-core)
Affects Versions: unomi-3.0.0
Reporter: Serge Huber
Fix For: unomi-3.0.0
h3. Problem
IT runs provide little feedback during long executions.
No real-time insight into progress, ETA, pass/fail counts, or slowest tests.
h3. Solution
Add a custom suite runner with a listener that:
Counts all {{@Test}} methods once and shows live progress with percentage and
ETA.
Tracks success/failure and per-test timing.
Prints a “Top 10 Slowest Tests” list with CSV for copy/paste.
Uses ANSI colors when supported; plain text otherwise.
h3. Developer Experience Improvements
Real-time visibility: progress bar, percentage, ETA.
Actionable insights: immediate pass/fail counts, slowest tests at the end.
Zero friction: works by default; no per-test changes.
h3. Example Output (simplified)
{noformat}
[███████░░░░░░░░░░░░░░░░░] Progress: 23.33% (35/150 tests). Estimated time
remaining: 4m 12s. Successful: 35, Failed: 0
Top 10 Slowest Tests:
Rank,Test Name,Duration (ms)
1,"GraphQLProfileIT.testUpdateProperty",18234
2,"ProfileMergeIT.testMerge",14925
...
{noformat}
h3. Acceptance Criteria
Startup banner shows total test count.
Live progress updates with percentage, ETA, success/failure.
Completion summary includes total time, counts, and top 10 slowest tests with
CSV.
h3. Verification
Run: {{mvn -pl itests -Pitests verify}}
Confirm progress updates appear, ETA changes, and slowest-tests CSV prints at
completion.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)