Skip to content

Commit

Permalink
Use the same test names on Win as on other OSes (#2149)
Browse files Browse the repository at this point in the history
## Changes
Use name format "TestAccept/bundle/variables/host" (previously slashes
were reversed on Windows).

## Tests
Manually run "go test ./acceptance -v -run
TestAccept/bundle/variables/host" in Windows VM.
  • Loading branch information
denik authored Jan 15, 2025
1 parent 82e3553 commit 6a7eefa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func TestAccept(t *testing.T) {
require.NotEmpty(t, testDirs)

for _, dir := range testDirs {
t.Run(dir, func(t *testing.T) {
testName := strings.ReplaceAll(dir, "\\", "/")
t.Run(testName, func(t *testing.T) {
t.Parallel()
runTest(t, dir, coverDir, repls)
})
Expand Down

0 comments on commit 6a7eefa

Please sign in to comment.