Skip to main content

dotnet-testing-lite

Build-first 執行 xUnit、收集 Cobertura並產生 target-scoped coverage manifest。

来源信息

仓库
kevintsengtw/dotnet-testing-agent-orchestration-codex-lite
最近来源活动
2026年9月11日 03:30
检测到的 SKILL.md 语言
中文
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
dotnet-testing-lite
description
Build-first 執行 xUnit、收集 Cobertura並產生 target-scoped coverage manifest。
# dotnet-testing-lite 正式 workflow 一律從已部署資產的專案根目錄執行 runner: ```bash node .codex/scripts/dotnet-testing-codex-lite/run-coverage.mjs \ --test-project <tests.csproj> \ --target-source <source.cs> \ --target-class <ClassName> \ --output <coverage.json> \ --production-baseline <baseline.json> ``` Script 固定: 1. `dotnet build <project> --no-incremental --verbosity minimal`,保留 compact warning evidence 2. `dotnet test <project> --no-build --verbosity minimal --collect:"XPlat Code Coverage"`,另指定獨立 results directory 與 TRX logger 3. 找出 Cobertura XML 4. 只彙整指定 target class/source 的 line與branch 5. 輸出 compact JSON 6. 核對 Author 前 capture 的 production baseline `--output` 與對應的 `.raw` evidence 目錄必須尚不存在。正式 workflow 必須傳入 `--production-baseline`;CLI 雖允許省略,省略時只會記錄 `not_checked`。 Line/branch 門檻預設各為 100,可用 `--line-threshold`/`--branch-threshold` 指定。 規則: - build失敗不得執行舊 binary tests。 - Runner 固定執行完整 test project,不接受 `--filter`;另外執行的篩選測試只供診斷。 - 修正額度遵循 Lite workflow driver 的每 target 最多一次 repair。 - 不升降既有 package;不得修改 production。 - coverage低於目標不是 build/test failure,但必須產生 gap manifest。 - 記錄 build/test/總 duration 與 warning count/codes;不得用 `WarningLevel=0` 隱藏。 - production integrity failure 一律失敗。 - 不把完整 CLI output放進 agent回覆;失敗時只保留尾端摘要。
在 GitHub 查看