Closed speakingcode closed 4 years ago
Maybe it's an import alias issue. Does this code solves your problem?
package foo
import (
"testing"
"github.com/onsi/gomega"
. "github.com/franela/goblin"
)
That works but then calls to all of the imported functions from Gomega (Expect, Equal, RegisterFailHandler, etc) must be prepended. What I ended up doing is:
package foo
import (
"testing"
. "github.com/onsi/gomega"
gob "github.com/franela/goblin"
)
func TestFoo(t *testing.T) {
g := gob.Goblin(t)
...
I'll make a PR with the doc fixed.
trying to run
go test
produces the following error:go.mod