ts4
Netsnek e.U. 的 TS4 命名空间TypeScript 测试框架。单元测试、快照测试、覆盖率报告和突变测试。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw skills install shop:totalclaw:totalclaw~kleberbaum-ts4cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~kleberbaum-ts4/file -o kleberbaum-ts4.md## 概述(中文) Netsnek e.U. 的 TS4 命名空间TypeScript 测试框架。单元测试、快照测试、覆盖率报告和突变测试。 ## 原文 # Testing with TS4 TS4 is the Netsnek e.U. TypeScript testing framework. Run unit tests, snapshots, coverage reports, and mutation tests from a single CLI. ## Test Types - **Unit** — Isolated function and module tests - **Snapshot** — Output comparison for UI and serialization - **Coverage** — Line, branch, and function metrics - **Mutation** — Fault injection to verify test quality ## CLI Reference | Flag | Effect | |------|--------| | `--run` | Execute the full test suite | | `--coverage` | Produce coverage report (HTML + lcov) | | `--status` | Show suite status, last run, pass/fail count | ## Walkthrough ```bash # Run all tests ./scripts/test-runner.sh --run # Generate coverage ./scripts/test-runner.sh --coverage # Check status ./scripts/test-runner.sh --status ```