Skip to content

Commit

Permalink
Merge pull request #4 from companieshouse/update-test-names
Browse files Browse the repository at this point in the history
Update test names to match unit test regex in Makefile
  • Loading branch information
jsimons1989 committed Jan 3, 2020
2 parents 79bff58 + f127135 commit f7c2f9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ build:
go build ./...

.PHONY: test
test: test-unit
test: test-unit test-integration

.PHONY: test-unit
test-unit:
go test $(TESTS) -run 'Unit' -coverprofile=coverage.out

.PHONY: test-integration
test-integration:
go test $(TESTS) -run 'Integration'
2 changes: 1 addition & 1 deletion envconf_flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/smartystreets/goconvey/convey"
)

func TestFlagFromEnv(t *testing.T) {
func TestIntegrationFlagFromEnv(t *testing.T) {
Convey("Replacing flags with env vars after parsing", t, func() {
os.Clearenv()

Expand Down
2 changes: 1 addition & 1 deletion envconf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
. "github.com/smartystreets/goconvey/convey"
)

func TestFromEnv(t *testing.T) {
func TestIntegrationFromEnv(t *testing.T) {
Convey("Value not replaced if environment variable not set", t, func() {
os.Clearenv()
v := interface{}("default")
Expand Down

0 comments on commit f7c2f9b

Please sign in to comment.