qur / withmock

Automatic Go package mock generation tool
Other
71 stars 9 forks source link

withmock not picking up all test when using recursive "./..." call #5

Closed imosquera closed 11 years ago

imosquera commented 11 years ago

When I use the command:

go test ./...

it picks up all my tests: ? github.com/imosquera/uploadthis [no test files] ok github.com/imosquera/uploadthis/conf 0.029s ok github.com/imosquera/uploadthis/hooks 0.031s ok github.com/imosquera/uploadthis/monitor 0.036s ok github.com/imosquera/uploadthis/uploadthis 0.029s ? github.com/imosquera/uploadthis/util [no test files]

but if I use the "withmock" command it only picks up the base package:

withmock go test ./...

? github.com/imosquera/uploadthis [no test files]

thanks in advance for your help

imosquera commented 11 years ago

Additionally, if i give it a package like "withmock go test ./hooks/" name it comes back with this:

can't load package: package github.com/imosquera/uploadthis/hooks: cannot find package "github.com/imosquera/uploadthis/hooks" in any of: /usr/local/Cellar/go/1.1.1/src/pkg/github.com/imosquera/uploadthis/hooks (from $GOROOT) /Users/imosquera/Code/goloopy/src/github.com/imosquera/uploadthis/hooks (from $GOPATH)

imosquera commented 11 years ago

Sorry, just realized you had mocktest with gocov built in! nice touch!

please ignore this bug.