From e37dbfeeb30815fe82b51c633097e1d62bbed874 Mon Sep 17 00:00:00 2001 From: Andrea Nodari Date: Wed, 4 Apr 2018 13:25:05 +0100 Subject: [PATCH] Update fixtures to work using go1.10 In go 1.10 the `-coverpkg` flag does not load new packages, but allow users to provide a list of patterns (see https://golang.org/doc/go1.10#test). For this reason, we need to import the package in the fixture. --- integration/_fixtures/coverage_fixture/coverage.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration/_fixtures/coverage_fixture/coverage.go b/integration/_fixtures/coverage_fixture/coverage.go index 436e21d18..e4d7e43b1 100644 --- a/integration/_fixtures/coverage_fixture/coverage.go +++ b/integration/_fixtures/coverage_fixture/coverage.go @@ -1,5 +1,9 @@ package coverage_fixture +import ( + _ "github.com/onsi/ginkgo/integration/_fixtures/coverage_fixture/external_coverage_fixture" +) + func A() string { return "A" }