Skip to content

[CV-10]: [Enhancement] Auto-Refresh Coverage When Test Files Are Saved#10

Merged
kool7 merged 5 commits into
mainfrom
feat/auto-run-on-test-change
May 21, 2026
Merged

[CV-10]: [Enhancement] Auto-Refresh Coverage When Test Files Are Saved#10
kool7 merged 5 commits into
mainfrom
feat/auto-run-on-test-change

Conversation

@kool7
Copy link
Copy Markdown
Owner

@kool7 kool7 commented May 17, 2026

  • Added automatic pytest re-run when any test file is saved or deleted — coverage dashboard and status bar update within 2 seconds, with no manual steps required.
  • Added a spinner in the status bar while pytest runs so users always know coverage is being refreshed, not frozen.
  • Added a coverageVisualizer.autoRunOnTestChange setting (default on) so users with slow test suites can opt out without losing other features.
  • Fixed dashboard not opening after "Show Dashboard" triggers a pytest run — previously the panel stayed blank until the command was run a second time.
  • Fixed coverage percentage showing 100% instead of the correct value — the extension now always generates coverage data via coverage json from .coverage, which respects the project's branch coverage configuration.
  • Fixed dashboard not refreshing after auto-run completes — the panel now always shows the latest numbers without needing to clear and reload manually.
  • Improved extension stability — running pytest process is killed on deactivation, environment checks are cached after first run, and process-level race conditions are prevented.

@kool7 kool7 added enhancement New feature or request ui labels May 17, 2026
@kool7 kool7 self-assigned this May 17, 2026
@kool7 kool7 added the bug Something isn't working label May 21, 2026
Copy link
Copy Markdown
Owner Author

@kool7 kool7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@kool7 kool7 merged commit 387324b into main May 21, 2026
1 check passed
@kool7 kool7 deleted the feat/auto-run-on-test-change branch May 21, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant