Skip to content

Commit

Permalink
Enable test shuffling (#280)
Browse files Browse the repository at this point in the history
This is something that I thought we were already doing, but apparently
not.

```
-test.shuffle string
        randomize the execution order of tests and benchmarks (default "off")
```
  • Loading branch information
EduardGomezEscandell authored Sep 18, 2023
2 parents 05b8e80 + de891ce commit e886914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ jobs:
if: always() && !cancelled()
working-directory: ${{ matrix.subproject }}
run: |
go test -coverpkg=./... -coverprofile=/tmp/coverage.out -covermode=count ./... -tags=gowslmock
go test -shuffle=on -coverpkg=./... -coverprofile=/tmp/coverage.out -covermode=count ./... -tags=gowslmock
- name: Run tests (with race detector)
shell: bash
# -race not supported on Windows
if: matrix.os != 'windows'
working-directory: ${{ matrix.subproject }}
run: |
go test ./... -race -tags=gowslmock
go test -shuffle=on ./... -race -tags=gowslmock
#- name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
Expand Down

0 comments on commit e886914

Please sign in to comment.