qur / withmock

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

Pull packages from command line #2

Closed qur closed 11 years ago

qur commented 11 years ago

Currently it is assumed that you are testing the package in the current directory. However, this is not a limitation shared by the go test command, and we should try to support the same package selection options.

qur commented 11 years ago

withmock is going to keep this limitation, as pulling packages from the command line would require understanding it, which would basicaly mean guessing. Instead, an alternative command 'mocktest' has been introduced which is a replacement for "go test" instead of a wrapper. mocktest is then able to process all of the specified packages and construct and run a go test command across versions of those packages each setup to use mocked imports as marked in their own test files.