Skip to content

Commit 6c9b4a6

Browse files
authored
Fix tests that weren't running and have grown out of sync (#148)
* Actually run tests * Fix "CLI doc is in-sync" test * Fix outdated SCIP snapshot tests * Run `go mod tidy` * Run tests with `-v` flag
1 parent 360433c commit 6c9b4a6

File tree

5 files changed

+166
-166
lines changed

5 files changed

+166
-166
lines changed

.github/workflows/golang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
- uses: ./.github/actions/asdf
1717
with:
1818
golang: true
19-
- run: go test ./...
19+
- run: go test ./... -v

cmd/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020

2121
func TestMain(m *testing.M) {
2222
Reproducible = "true"
23+
os.Exit(m.Run())
2324
}
2425

2526
func TestCLIReferenceInSync(t *testing.T) {
@@ -91,7 +92,7 @@ func TestSCIPSnapshots(t *testing.T) {
9192
require.Nil(t, err)
9293
symbolFormatter := scip.DescriptorOnlyFormatter
9394
symbolFormatter.IncludePackageName = func(name string) bool { return name != testName }
94-
snapshots, err := testutil.FormatSnapshots(index, "#", symbolFormatter, "")
95+
snapshots, err := testutil.FormatSnapshots(index, "#", symbolFormatter, inputDirectory)
9596
require.Nil(t, err)
9697
if debugSnapshotAbspaths != nil && *debugSnapshotAbspaths {
9798
inputDirAbsPath, err := filepath.Abs(inputDirectory)

0 commit comments

Comments
 (0)