Repository navigation
Test run config, tree, graph contract and webview; fix graph node clicks - #39
Merged
Merged
Conversation
…biguation Move the run-config store and the tree's sort and relation logic out of vscode-dependent files so they run under plain Node. Add a second fixture declaring the same target on an interface to exercise goToTarget's tie-break. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6hKb9Lpz4vBWMgPJS7N6D
The hand-written fixtures can drift from what Fallout writes. The contract test regenerates build-graph.json with this repo's own build and checks the extension's assumptions against it. It already caught that `description` is emitted as null, which the type did not allow. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6hKb9Lpz4vBWMgPJS7N6D
…wrong target Move the graph page HTML into a vscode-free module and load it in Chrome or Edge via Playwright with acquireVsCodeApi stubbed. The test found that clicking a node posted target "flowchart": Mermaid 11 prefixes node ids with the render id, so splitting on the first dash picked the wrong segment. The page now matches the target name explicitly. Closes #37 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6hKb9Lpz4vBWMgPJS7N6D
Add ITestVsix to Fallout.Vsce: it runs the extension's npm test scripts, and wraps the ones that launch VS Code in xvfb-run on a Linux box without a display. The gate now invokes TestVsix before PackVsix, and caches the downloaded VS Code. A test runner script lists test files explicitly, since `node --test <dir>` differs between Node versions and the generated workflow installs none. Also make the goToTarget test wait for the selection, not just the editor: the command is fire-and-forget, and the first run through the build caught the race. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G6hKb9Lpz4vBWMgPJS7N6D
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.
More test coverage on top of #38. Closes #37.
Bug fix: clicking a node in the graph posted
runfor targetflowchart. Mermaid 11 prefixes node ids with the render id, soid.split('-')[1]picked the wrong segment. The page now matches the target name explicitly. Found by the new webview test.RunConfigStore(parameters, secrets kept out of workspace state, args, env), tree sort and relations. Moved out ofrunConfig.ts/extension.tsintorunConfigStore.ts/graph.ts, no behaviour change.goToTargetpicks the right file when two types declare the same target (declaredIn).npm run test:webview):src/graphPage.tsholds the page HTML;playwright-coreloads it in installed Chrome or Edge withacquireVsCodeApistubbed. Coversready, rendering, solid/dashed/thick edges, default-target styling, click →run, re-render.npm run test:contract, needs .NET): runsdotnet fallout --planso Fallout emits a realbuild-graph.json, then checks the extension's assumptions. Found thatdescriptionis emitted asnull; the type now allows it.Verified: unit 28, webview 6, extension-host 5, contract 9, all passing locally.