mockery icon indicating copy to clipboard operation
mockery copied to clipboard

-inpkg and -output options don't work together

Open limscoder opened this issue 6 years ago • 1 comments

-inpkg flag generates the mock file in the same directory as the source file, specifying -output has no effect when -inpkg is set.

I'd like to have a directory structure like this:

- packagename
  - mocks
    mock_client.go
  client.go

limscoder avatar Aug 01 '18 20:08 limscoder

Are you able to get -output working at all? I'm not able to.

I'm trying to do something like this :

`

  • %GOPATH%
    • src
      • [my project]
        • testing
          • mocks
            • mock_Store.go // my boss wants the mock here.
      • github.com
        • astaxie
          • beego
            • session
              • session.go // contains the Store that I want to mock`

MikeWarren2014 avatar Aug 14 '18 16:08 MikeWarren2014

Hi, v1 is not supported anymore, closing this ticket. Please open a separate ticket if you still experience this issue. Thanks!

Please note that many issues are going to be fixed once the packages feature is fully adopted.

LandonTClipp avatar Apr 06 '23 21:04 LandonTClipp