Add History tab with recent-run summaries — v0.8.0 - #164
Merged
Conversation
… tests New History tab shows one row per recent run (start time, duration, completion status, pass/fail/other counts, total, and program-under-test version) with the run's failed tests as expandable child rows. Runs with failures auto-expand; a user's collapse/expand choice survives refreshes. - run_history.py: headless per-run summarizer built on run_state - PytestProcessInfoReader.query_recent_runs / query_change_token: the change token lets the per-tick refresh skip re-querying and rebuilding when nothing was written - history_run_limit preference (default 10) sets how many runs are shown, editable in the Configuration tab (with Restore Defaults support) - capture_assets.py includes the new tab; README screenshots regenerated Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #164 +/- ##
==========================================
+ Coverage 87.22% 87.44% +0.22%
==========================================
Files 68 71 +3
Lines 5580 5713 +133
==========================================
+ Hits 4867 4996 +129
- Misses 713 717 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a History tab showing the results of recent test runs, per the request: run times, pass/fail statistics, and a list of failed tests, with the number of runs shown as a configuration option.
run_history.py: headless per-run summarizer built onrun_state(latest record per test wins).PytestProcessInfoReader.query_recent_runs(output column omitted) andquery_change_token(COUNT(*)/MAX(rowid)), so the per-tick refresh skips re-querying and rebuilding when nothing was written.Testing
tests/test_run_history.py(summarizer) andtests/test_history_tab.py(tab rendering, run limit, change-token gating, expansion behavior); new reader-query tests intests/test_db_reader.py.ruff check/ruff formatclean;tydiagnostics unchanged (pre-existing only).🤖 Generated with Claude Code