Skip to content

Add unit tests and CI test gate#440

Open
jrschumacher wants to merge 1 commit intoOpenWhispr:mainfrom
jrschumacher:add-unit-tests
Open

Add unit tests and CI test gate#440
jrschumacher wants to merge 1 commit intoOpenWhispr:mainfrom
jrschumacher:add-unit-tests

Conversation

@jrschumacher
Copy link
Contributor

Establish a baseline set of 180 unit tests across 13 test files to ensure critical pure-logic modules don't silently regress. These cover hotkey validation and normalization, WAV file construction, URL security checks, API URL normalization, transcription correction learning, LLM output parsing, byte formatting, date grouping, TTL caching, retry logic, language validation, and prompt utilities.

Vitest is configured as the test runner. Both the build-and-notarize and release CI workflows now run a test job that must pass before any platform build begins.

Establish a baseline set of 180 unit tests across 13 test files to
ensure critical pure-logic modules don't silently regress. These cover
hotkey validation and normalization, WAV file construction, URL security
checks, API URL normalization, transcription correction learning, LLM
output parsing, byte formatting, date grouping, TTL caching, retry
logic, language validation, and prompt utilities.

Vitest is configured as the test runner. Both the build-and-notarize
and release CI workflows now run a test job that must pass before any
platform build begins.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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