From 2c9681f317d4deb100dcfc624de5a37d41f2daf8 Mon Sep 17 00:00:00 2001 From: MahendraTeja95 Date: Wed, 11 Mar 2026 16:40:35 +0530 Subject: [PATCH] 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. --- cmd/picoclaw/internal/onboard/helpers_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cmd/picoclaw/internal/onboard/helpers_test.go b/cmd/picoclaw/internal/onboard/helpers_test.go index f3e0c92e0..22c1080b7 100644 --- a/cmd/picoclaw/internal/onboard/helpers_test.go +++ b/cmd/picoclaw/internal/onboard/helpers_test.go @@ -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") + } +}