[#24] Use build tags to run integration tests #25

Merged
8 changed files with 18 additions and 0 deletions
Showing only changes of commit 6f35d7198d - Show all commits

View file

@ -13,6 +13,7 @@ This document outlines major changes between releases.
- Update viper to v1.15.0 (#8)
- Errors have become more detailed (#18)
- Update system attribute names (#22)
- Separate integration tests with build tags (#24)
### Updating from v0.26.0

View file

@ -62,6 +62,11 @@ docker/%:
test:
@go test ./... -cover
# Run integration tests
.PHONY: integration-test
integration-test:
@go test ./... -cover --tags=integration
# Run tests with race detection and produce coverage output
cover:
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic

View file

@ -1,3 +1,5 @@
//go:build !integration
package downloader
import (

View file

@ -1,3 +1,5 @@
//go:build integration
package main
import (

View file

@ -1,3 +1,5 @@
//go:build !integration
package tokens
import (

View file

@ -1,3 +1,5 @@
//go:build !integration
package uploader
import (

View file

@ -1,3 +1,5 @@
//go:build !integration
package uploader
import (

View file

@ -1,3 +1,5 @@
//go:build !integration
package utils
import (