一键导入
configuration-testing
Instructions for compiling, running CLI tests, and verifying config inputs against example yaml targets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instructions for compiling, running CLI tests, and verifying config inputs against example yaml targets.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Configuration Testing |
| description | Instructions for compiling, running CLI tests, and verifying config inputs against example yaml targets. |
This skill guides AI coding assistants on how to compile the ilc tool, run automated test suites, and perform manual testing on configurations inside the examples/ directory.
Always use sandboxed-friendly compilation flags (-buildvcs=false) to ensure Go tools execute without VCS permission errors inside isolated terminal containers:
# Run unit tests
go test -buildvcs=false ./...
# Compile local binary
make build
Since ilc uses interactive Bubble Tea TUI components, use the following manual test procedures to verify user interface features against local configuration templates.
Run the rating example to test number input fields, arrow key adjustments, and bounds validation:
./ilc examples/ilc.yml rate
rate command, enter a name (e.g. Laptop), and navigate to the rating input field.Up arrow key to increment the rating, and the Down arrow key to decrement.3 instead of 3.00000).1 (minimum) and 5 (maximum) and does not go out of bounds.✔ ) changes to a Coral Red cross (✘ ), and the [Enter] Confirm guidelines dynamically disappear.Run the greeting example to test string patterns, empty default placeholders, and progressive input stacking:
./ilc examples/ilc.yml greet
"World" is visible in the text field.✔ ) renders immediately.^[a-zA-Z]+$) to verify that the tick changes instantly to a soft red cross (✘ ).Verify that the contextual help overrides function correctly for both global configurations and nested subcommand targets:
# Global help context (prints flags, root inputs, and child commands)
./ilc examples/ilc.yml -help
# Subcommand-specific help context (prints subcommand description, inherited parameters, and child command paths)
./ilc examples/ilc.yml weather -help
Confirm that these help commands output cleanly to standard error/output and exit with shell exit status code 0.