Skip to content

ci: Print go test stats #6855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rename json, avoid linter
  • Loading branch information
mafredri committed Mar 29, 2023
commit 0da7fa0d684bddf3d4c2313a8ff12434ee07271c
4 changes: 2 additions & 2 deletions scripts/ci-report/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func TestOutputMatchesGoldenFile(t *testing.T) {
t.Parallel()

// Sample created via:
// gotestsum --jsonfile ./scripts/ci-report/testdata/gotests-sample.json \
// gotestsum --jsonfile ./scripts/ci-report/testdata/gotests.json.sample \
// -- \
// ./agent ./cli ./cli/cliui \
// -count=1 \
// -timeout=5m \
// -parallel=24 \
// -run='^(TestServer|TestAgent_Session|TestGitAuth$|TestPrompt$)'
goTests, err := parseGoTestJSON(filepath.Join("testdata", "gotests-sample.json"))
goTests, err := parseGoTestJSON(filepath.Join("testdata", "gotests.json.sample"))
if err != nil {
t.Fatalf("error parsing gotestsum report: %v", err)
}
Expand Down