test(onboard): verify TOOLS.md is included in workspace templates
Add test to confirm TOOLS.md is embedded and copied during onboarding, matching the existing AGENTS.md test pattern.
This commit is contained in:
parent
c790921b76
commit
2c9681f317
1 changed files with 17 additions and 0 deletions
|
|
@ -23,3 +23,20 @@ func TestCopyEmbeddedToTargetUsesAgentsMarkdown(t *testing.T) {
|
|||
t.Fatalf("expected legacy file %s to be absent, got err=%v", legacyPath, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCopyEmbeddedToTargetIncludesToolsMarkdown(t *testing.T) {
|
||||
targetDir := t.TempDir()
|
||||
|
||||
if err := copyEmbeddedToTarget(targetDir); err != nil {
|
||||
t.Fatalf("copyEmbeddedToTarget() error = %v", err)
|
||||
}
|
||||
|
||||
toolsPath := filepath.Join(targetDir, "TOOLS.md")
|
||||
data, err := os.ReadFile(toolsPath)
|
||||
if err != nil {
|
||||
t.Fatalf("expected TOOLS.md to exist: %v", err)
|
||||
}
|
||||
if len(data) == 0 {
|
||||
t.Fatal("TOOLS.md should not be empty")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue