makefile: separated integration tests, added test coverage

This commit is contained in:
Michał Matczuk
2017-07-31 16:11:42 +02:00
parent f8043ef567
commit 9ab68074ab
3 changed files with 10 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
all: check test all: check test integration-test
.PHONY: check .PHONY: check
check: check:
@@ -10,8 +10,11 @@ check:
.PHONY: test .PHONY: test
test: test:
go test -race ./... go test -cover -race ./...
go test -tags integration ./...
.PHONY: integration-test
integration-test:
go test -cover -tags integration
.PHONY: get-deps .PHONY: get-deps
get-deps: get-deps:

View File

@@ -1,3 +1,5 @@
// +build !integration
package gocqlx package gocqlx
import ( import (

View File

@@ -1,3 +1,5 @@
// +build !integration
package gocqlx package gocqlx
import ( import (