项目测试方案制定
testing
根据项目内容确定如何进行测试的指南。
- License 许可
- CC-BY-4.0
- 最近更新
- 2026-10-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- testing
- description
- Guidelines for determining how to test a project based on its contents.
02 资源文件 6
- 参考文档agents/openai.yaml274 B
- 参考文档references/charts-and-data.md1.9 KB
- 参考文档references/creative-direction.md3.3 KB
- 参考文档references/diagrams.md4.3 KB
- 参考文档references/documents-and-presentations.md1.9 KB
- 参考文档references/interfaces.md1.5 KB
03 SKILL.md 正文
Testing Projects
When asked to "test" a project, you must first inspect the repository to determine what testing frameworks or build tools it uses. The correct command depends heavily on the files present in the root directory.
Use the following rules to figure out the correct test command(s). Note that some projects can be "polyglot" (e.g. they contain a Java backend and a TypeScript frontend, or they use Nix), so you may need to run multiple of these.
Nix
If the project contains a ./flake.nix at its root:
- Run
nix flake check
Java - Maven
If the project contains a pom.xml:
- Run
mvn test
Java/Kotlin - Gradle
If the project smells of Gradle (contains build.gradle, build.gradle.kts, settings.gradle, or gradlew):
- Run
gradle check(or./gradlew checkif the wrapper is present)
JavaScript/TypeScript
If the project contains a package.json, you need to figure out whether to use npm, bun, or another package manager based on the lockfile present:
- If
bun.lockborbun.lockis present: runbun install && bun test - If
package-lock.jsonis present: runnpm install && npm test - If
yarn.lockis present: runyarn install && yarn test - If
pnpm-lock.yamlis present: runpnpm install && pnpm test - If no lockfile is present, default to
npm install && npm test(or ask the user).
04 同仓库更多 Skills
Michael Vorburger 个人资料
vorburger-profile
提供关于 Michael Vorburger 的个人及职业信息。
TypeScript 编码规范
typescript-conventions
强制执行 TypeScript 及项目特定的编码标准,包括 Bun 的使用和零警告策略。在创建或修改任何 TypeScript 或配置文件时使用此技能。
Agent Skills 文件规范
skills
Agent Skills 文件的编写规则。
脚本编写与执行规范
scripting
编写和执行脚本(TS、Bash 等)的约定规范。
常用任务首选工具
preferred-tools
代码检查(linting)、链接检查等常见任务的首选工具。
Nix 软件包管理
nix
使用 Nix Flakes 和 flake-parts 进行软件包管理。