You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5-4
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Installation
35
35
36
36
### Github Release
37
37
38
-
Visit the [releases page](https://github.com/vektra/mockery/releases) to download one of the pre-built binaries for your platform.
38
+
Visit the [releases page](https://github.com/vektra/mockery/releases) to download one of the pre-built binaries for your platform.
39
39
40
40
### Docker
41
41
@@ -352,6 +352,7 @@ The following descriptions provide additional elaboration on a few common parame
352
352
|`--all`| It's common for a big package to have a lot of interfaces, so mockery provides `--all`. This option will tell mockery to scan all files under the directory named by `--dir` ("." by default) and generates mocks for any interfaces it finds. This option implies `--recursive=true`. |
353
353
|`--recursive`| Use the `--recursive` option to search subdirectories for the interface(s). This option is only compatible with `--name`. The `--all` option implies `--recursive=true`. |
354
354
|`--output`| mockery always generates files with the package `mocks` to keep things clean and simple. You can control which mocks directory is used by using `--output`, which defaults to `./mocks`. |
355
+
|`--outpkg`| Use `--outpkg` to specify the package name of the generated mocks.|
355
356
|`--inpackage` and `--keeptree`| For some complex repositories, there could be multiple interfaces with the same name but in different packages. In that case, `--inpackage` allows generating the mocked interfaces directly in the package that it mocks. In the case you don't want to generate the mocks into the package but want to keep a similar structure, use the option `--keeptree`. |
356
357
|`--filename`| Use the `--filename` and `--structname` to override the default generated file and struct name. These options are only compatible with non-regular expressions in `--name`, where only one mock is generated. |
357
358
|`--case`| mockery generates files using the casing of the original interface name. This can be modified by specifying `--case underscore` to format the generated file name using underscore casing. |
@@ -419,7 +420,7 @@ v1 is the original version of the software, and is no longer supported.
419
420
420
421
### v2
421
422
422
-
`mockery` is currently in v2, which iterates on v1 and includes mostly cosmetic and configuration improvements.
423
+
`mockery` is currently in v2, which iterates on v1 and includes mostly cosmetic and configuration improvements.
423
424
424
425
### v3
425
426
@@ -429,8 +430,8 @@ v1 is the original version of the software, and is no longer supported.
429
430
* You specify the packages you want mocked, instead of relying on it auto-discovering your package. Auto-discovery in theory sounds great, but in practice it leads to a great amount of complexity for very little benefit.
430
431
* Package- or interface-specific overrides can be given that change mock generation settings on a granular level. This will allow your mocks to be generated in a heterogenous manner, and will be made explicit by yaml configuration.
431
432
- Proper error reporting. Errors across the board will be done in accordance with modern Golang practices
432
-
- Variables in generated mocks will be given meaningful names.
433
-
433
+
- Variables in generated mocks will be given meaningful names.
0 commit comments