forked from TrueCloudLab/frostfs-http-gw
[#24] Use build tags to run integration tests
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
81f7168a16
commit
6f35d7198d
8 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
5
Makefile
5
Makefile
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build !integration
|
||||
|
||||
package downloader
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build integration
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build !integration
|
||||
|
||||
package tokens
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build !integration
|
||||
|
||||
package uploader
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build !integration
|
||||
|
||||
package uploader
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//go:build !integration
|
||||
|
||||
package utils
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue