Skip to content

Commit 9251e99

Browse files
committed
Randomize test order for unit tests
I don't know why this isn't the default behavior, but relying on test order is a bad idea (TM) that we should do our best to avoid. Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent eed41cd commit 9251e99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ format:
3535
.PHONY: format
3636

3737
unit:
38-
$(GO_TEST) ./...
38+
$(GO_TEST) -shuffle on ./...
3939
.PHONY: unit
4040

4141
coverage:
42-
$(GO_TEST) -covermode count -coverprofile cover.out -coverpkg=./... ./...
42+
$(GO_TEST) -shuffle on -covermode count -coverprofile cover.out -coverpkg=./... ./...
4343
.PHONY: coverage
4444

4545
acceptance: acceptance-basic acceptance-baremetal acceptance-blockstorage acceptance-compute acceptance-container acceptance-containerinfra acceptance-db acceptance-dns acceptance-identity acceptance-image acceptance-keymanager acceptance-loadbalancer acceptance-messaging acceptance-networking acceptance-objectstorage acceptance-orchestration acceptance-placement acceptance-sharedfilesystems acceptance-workflow

0 commit comments

Comments
 (0)