(t *testing.T)
| 164 | } |
| 165 | |
| 166 | func 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 | |
| 187 | func TestTracks_TableFormat(t *testing.T) { |
| 188 | tmpDir := createTracksTestTaskFiles(t) |
nothing calls this directly
no test coverage detected