Skip to content

Refresh the test pane when environments change outside the extension - #358

Open
ThisCakeIsALie wants to merge 7 commits into
mainfrom
refresh-on-external-env-changes
Open

ThisCakeIsALie wants to merge 7 commits into
mainfrom
refresh-on-external-env-changes

Conversation

@ThisCakeIsALie

Copy link
Copy Markdown
Contributor

When clicast or manage changes an environment outside the extension, for example run by an AI agent or in a terminal, the test tree, coverage and test results now update by themselves instead of waiting for a manual refresh. A file watcher reloads just the environment whose master.db or cover.db changed, rescans when an environment is built, deleted or moved or a Manage project's .vcm changes, and reports newly run tests as a test run so the Testing view shows their pass or fail. It skips changes the extension made itself and waits while a run or rescan is in progress. On WSL with VC27, each outside clicast or manage command caused one reload or rescan and read-only commands none; Windows, C++/Ada, VectorCAST older than 26 and the extension's own Run button after this change are untested. This PR and #357 both start 1.0.36 in CHANGELOG.md and package.json, so the second to merge needs a small rebase.

ThisCakeIsALie and others added 7 commits November 11, 2026 15:37
clicast run in a terminal or by an agent left the Test Explorer stale until
a manual refresh. VectorCAST rewrites master.db or cover.db for every change
to tests, results or coverage, and writes UNITDATA.VCD last in a build, so
watch those: a known environment is updated, a new or deleted one triggers a
rescan. Reads do not touch these files, so the extension's own data loads
cannot loop. The watcher waits while a test run or rescan is replacing test
items, and skips changes the pane has already loaded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When an outside change gives a test a new result, report it as a test run,
so the Testing view shows its pass or fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sion

VectorCAST writes a project's .vcm file only when its compilers, testsuites,
environments or settings change, which the test pane reads only in a full
rescan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.74%. Comparing base (a9e8010) to head (58d335e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src-common/commonUtilities.ts 25.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #358      +/-   ##
===========================================
- Coverage   100.00%   99.74%   -0.26%     
===========================================
  Files           12       12              
  Lines         2349     2357       +8     
  Branches       329      329              
===========================================
+ Hits          2349     2351       +2     
- Misses           0        6       +6     
Flag Coverage Δ
Unit 99.74% <25.00%> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant