v0.2.0-beta.0 — Phase B test suite (beta)
Pre-release
Pre-release
·
302 commits
to master
since this release
First beta of the Phase B test suite. No behavioral change to any command — purely additive coverage.
Highlights
- 102 fixture-backed
node:testtests covering every existing command (was 9 smoke tests in 0.1.0). - 93.03 % line / 95.65 % function coverage on
src/commands/*+src/draft.ts— well above the 80 % gate. - CI now enforces the gate: new
coveragejob (Node 22 / ubuntu) joins theci-passaggregate. - Each mutating test runs against a deep-cloned tmp copy of the fixture corpus — zero shared state.
Modules covered
| File | Tests | Coverage |
|---|---|---|
test/create.test.mjs |
14 (init, add-video, add-audio, add-text) | create.js 97.76 % |
test/edit.test.mjs |
22 (set-text, shift, shift-all, speed, volume, opacity, trim) | edit.js 100 % |
test/inspect.test.mjs |
24 (info, tracks, materials, segments, texts, export-srt, segment, material) | inspect.js 80.41 % |
test/template.test.mjs |
10 (save-template, apply-template) | template.js 93.53 % |
test/cut.test.mjs |
9 | cut.js 98.70 % |
test/batch.test.mjs |
11 (JSONL stdin) | batch.js 100 % |
test/smoke.test.mjs |
9 (carry-over from 0.1.0) | — |
Compatibility
- No schema or behavioral changes vs. 0.1.0.
- Same Node ≥ 18 / 3-OS support. Full matrix green.
- npm tag:
beta(does not replacelatest; runnpm install capcut-cli-david@betato opt in).
What's next
0.2.0 stable lands after the beta soak (CI green + smoke validated). Then Phase C (ken-burns + keyframe commands) on 0.3.x.
— Generated as part of the Phase B closeout.