MCPcopy Create free account
hub / github.com/driangle/taskmd / TestTracks_YAMLFormat

Function TestTracks_YAMLFormat

apps/cli/internal/cli/tracks_test.go:166–185  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

164}
165
166func TestTracks_YAMLFormat(t *testing.T) {
167 tmpDir := createTracksTestTaskFiles(t)
168 resetTracksFlags()
169 tracksFormat = "yaml"
170
171 output, err := captureTracksOutput(t, []string{tmpDir})
172 if err != nil {
173 t.Fatalf("runTracks failed: %v", err)
174 }
175
176 if !strings.Contains(output, "tracks:") {
177 t.Error("Expected YAML output to contain 'tracks:'")
178 }
179 if !strings.Contains(output, "flexible:") {
180 t.Error("Expected YAML output to contain 'flexible:'")
181 }
182 if !strings.Contains(output, "scopes:") {
183 t.Error("Expected YAML output to contain 'scopes:'")
184 }
185}
186
187func TestTracks_TableFormat(t *testing.T) {
188 tmpDir := createTracksTestTaskFiles(t)

Callers

nothing calls this directly

Calls 4

resetTracksFlagsFunction · 0.85
captureTracksOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected