Skip to content

Added unit tests across the previously untested modules - #44

Merged
CodyCBakerPhD merged 5 commits into
mainfrom
claude/improve-codecov-coverage-76vr1d
Sep 5, 2026
Merged

CodyCBakerPhD merged 5 commits into
mainfrom
claude/improve-codecov-coverage-76vr1d

Conversation

@CodyCBakerPhD

Copy link
Copy Markdown
Member

Unit coverage goes from 63.4% to 80.8% of statements (64.9% to 82.5% of lines), all from new tests; no application code changed.

New test files: fileLoading (99%), analysisTab (86%), samplePicker (98%), inBrowserEncode (100%), mediabunnyMeta, save, seekReport, educational, educationalToggle, tabs, inspectToc, elements, mediabunny. Extended: mp4boxParser (the feeding loop, box tree, faststart and sample analysis, 23% to ~100%) and zoomPan (drag, buttons, pixel grid, 59% to 94%).

elements.test.ts mounts the real index.html, so an id renamed in one place and not the other fails in tests rather than at startup.

One config change: configs/vitest.config.ts now defines __APP_VERSION__ the same way vite.config.ts does, which is what makes analysisTab importable under vitest at all.

Prompts

Can you improve the codecov coverage for this repo?

🤖 Generated with Claude Code

https://claude.ai/code/session_01TEvzqbe9ebXD6tdyShaKXY


Generated by Claude Code

claude and others added 3 commits September 5, 2026 16:22
Covers file loading end to end, the Full Analysis document, the sample
picker, the in-browser encode, the mp4box feeding loop, the tab bar, the
Inspect table of contents, the Educational switch, the save helpers and
mediabunny metadata extraction, plus the drag, button and pixel-grid
paths of the Compare panes' zoom/pan.

The vitest config now defines __APP_VERSION__ the way the app is built,
so a module that prints the version can be unit-tested at all.

Coverage goes from 63% to 81% of statements.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEvzqbe9ebXD6tdyShaKXY
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEvzqbe9ebXD6tdyShaKXY
@github-actions

github-actions Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://brain-bbqs.github.io/encoding-helper/pr-preview/pr-44/

Built to branch gh-pages at 2026-09-05 16:43 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@CodyCBakerPhD CodyCBakerPhD self-assigned this Sep 5, 2026
Signed-off-by: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 28 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The merge from main took main's package.json and this branch's changelog
heading, leaving the lockfile at 1.3.5 and the entry under a version the
package no longer carries.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TEvzqbe9ebXD6tdyShaKXY
@CodyCBakerPhD
CodyCBakerPhD marked this pull request as ready for review September 5, 2026 16:43
@CodyCBakerPhD
CodyCBakerPhD merged commit 8176e6e into main Sep 5, 2026
16 checks passed
@CodyCBakerPhD
CodyCBakerPhD deleted the claude/improve-codecov-coverage-76vr1d branch September 5, 2026 19:10
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.

3 participants