[go-nuts] Re: Running tests per package with Go module

2019-08-20 Thread Dr Waryaa
Hi Jacques, Thanks for trying that. I found out that I was on a wild goose chase. As it turns out, it was code that my TestMain called which had a hard-coded reference looking for the GOPATH. Cheers, Chris On Wednesday, August 21, 2019 at 5:43:51 AM UTC+10, Jacques Supcik wrote: > > Hello Chris,

Re: [go-nuts] Re: Running tests per package with Go module

2019-08-20 Thread Marcin Romaszewicz
It could fail if you're under $GOPATH and GO111MODULE=auto, since inside the GOPATH, auto=off -- Marcin On Tue, Aug 20, 2019 at 12:43 PM Jacques Supcik wrote: > Hello Chris, > > I made a small project with the same structure as yours to reproduce the > problem : https://github.com/supcik/rtppw

[go-nuts] Re: Running tests per package with Go module

2019-08-20 Thread Jacques Supcik
Hello Chris, I made a small project with the same structure as yours to reproduce the problem : https://github.com/supcik/rtppwgm But in my project, everything works as expected : » go test -count=1 ./... ok demo/pkg1 0.006s ok demo/pkg2 0.006s » go test -count=1 ./pkg1/.