Merge pull request #3 from scylladb/mmt/coverage
makefile: separated integration tests, added test coverage
This commit is contained in:
9
Makefile
9
Makefile
@@ -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:
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// +build !integration
|
||||||
|
|
||||||
package gocqlx
|
package gocqlx
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
// +build !integration
|
||||||
|
|
||||||
package gocqlx
|
package gocqlx
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
Reference in New Issue
Block a user