Skip to content

Add coverage gate and performance smoke check - #27

Merged
krkarma777 merged 1 commit into
masterfrom
feature/coverage-perf-smoke
Aug 31, 2026
Merged

Add coverage gate and performance smoke check#27
krkarma777 merged 1 commit into
masterfrom
feature/coverage-perf-smoke

Conversation

@krkarma777

Copy link
Copy Markdown
Owner

Closes #20

Summary

  • CI test job now runs under c8 with enforced floors (statements/lines 97, branches 92, functions 99); measured coverage is 99.76% statements / 96.89% branches / 100% functions
  • Added a test covering the Intl.Segmenter-unavailable error path (the only meaningful uncovered line); remaining uncovered lines are defensive-unreachable guards in the Myers core
  • New `npm run perf:smoke` runs 4 scenarios against the built dist with ceilings 50-100x above measured medians — catches accidental complexity/allocation regressions while staying green on noisy shared runners; wired into CI after the build
  • Static coverage badge added to the README badge row; CHANGELOG finalized as 1.2.0

Test Plan

  • `npm run test:coverage` passes floors locally (59 tests)
  • `npm run perf:smoke`: word 1.23 ms / char 0.65 ms / heuristic worst 8.25 ms / exact worst 266 ms — all under ceilings

@krkarma777
krkarma777 merged commit fc3d9c5 into master Aug 31, 2026
5 checks passed
@krkarma777
krkarma777 deleted the feature/coverage-perf-smoke branch August 31, 2026 02:30
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.

test: coverage reporting with c8 + badge, perf smoke in CI

1 participant