AGENTS.md
test/AGENTS.mdAGENTS.md
Quality
74/100
Scores the file, not the repository.Length
207 words
4 headings · 0 code blocksRepository
64k
— · pushed 0 days agoLast changed
2 days ago
First indexed 2 days ago.1# OpenSpec Test Guidance23Applies to tests under `test/`.45## Running Tests67- Focused file: `pnpm exec vitest run test/path/to/file.test.ts`8- Focused case: `pnpm exec vitest run test/path/to/file.test.ts -t "case name"`9- Full suite: `pnpm test`10- Run `pnpm run build` before focused CLI tests when implementation changes may leave `dist/` stale.1112## Cross-Platform Paths1314- Do not hard-code Unix path separators in CLI output expectations unless the implementation intentionally emits POSIX paths.15- For filesystem paths, build expected values with `path.join(...)`, `path.relative(...)`, or `FileSystemUtils.joinPath(...)`.16- For human-readable output, either assert a deliberately normalized display format or normalize both actual and expected strings before comparing, for example with `FileSystemUtils.toPosixPath()` to convert backslashes to forward slashes for cross-platform consistency.17- When touching path behavior, add coverage that would fail on Windows path separators.1819## Path Canonicalization2021Path identity is a recurring CI failure mode: Windows short/long paths, symlink or22junction aliases, and case-insensitive file systems can spell the same existing23directory differently.2425When asserting existing filesystem paths as identities, canonicalize both actual26and expected paths first. Prefer `FileSystemUtils.canonicalizeExistingPath()` in27project code and `fs.realpathSync.native()` in test-only expectations.2829Add an alias-path regression when touching path identity logic. If preserving30user-typed path spelling is intentional, assert it separately from identity comparisons.31
Also in Fission-AI/OpenSpec
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| Fission-AI/OpenSpecopenspec/work/AGENTS.md · 64k | AGENTS.md | styleagent-behaviour | 40/100 | 2 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago |
