Skip to content

Raise test coverage to 97%, release 1.2.1 - #2

Merged
jkyberneees merged 4 commits into
mainfrom
test-coverage
Oct 28, 2026
Merged

jkyberneees merged 4 commits into
mainfrom
test-coverage

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Summary

  • 22 new test files: line coverage goes from 73.7% to 97.4% and function coverage from 69.6% to 93.2%. The suite grows from 78 to 418 tests.
  • Client DOM modules are tested against a small fake DOM (test/helpers/fakedom.ts), so no dependencies are added.
  • No source changes. Bumps the version to 1.2.1.

Not covered: code that opens real browsers or dialogs (browser.ts, main.ts launch paths), and the UI-heavy client modules (app, editor, codeview, tree, terminals, term/view, term/renderer).

Test plan

  • bun run test passes 4 times in a row on macOS
  • CI on macOS and Ubuntu (3 tests run on Linux only)

🤖 Generated with Claude Code

jkyberneees and others added 2 commits October 28, 2026 16:53
New tests for the server (http, index, main, git, settings, watch, update,
pty, files, browser) and the client (api, util, palette, menu, auth, updates,
icons, git, highlight, terminal, boxdraw). Client DOM modules run against a
small dependency-free fake DOM in test/helpers/fakedom.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test coverage raised from 74% to 97% of lines; no behavior changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/helpers/fakedom.ts Fixed
…extContent

Bun.spawn resolves commands against the PATH the process started with, so
the fake zenity/kdialog on a mutated PATH were never found on Linux CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/helpers/fakedom.ts Fixed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
0dcca45 2026-10-28T15:58:34.169Z View logs ↗
  • Build: In progress 🔵

View logs ↗
47b5893 2026-10-28T16:02:41.958Z View logs ↗

@jkyberneees
jkyberneees merged commit 9841a39 into main Oct 28, 2026
4 checks passed
@jkyberneees
jkyberneees deleted the test-coverage branch October 28, 2026 16:04
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.

2 participants