Sourcery template for generating:
Inline and in one go. See example Framework
FooMockfor possible use cases.
swift run --package-path BuildTools -c release Highway sourcery --sourcery-templates . --products Foo
You may find interesting
Generate Mocks in separate files - 2020-02-04 11:04:35
Some bugs are fixed
- Imports are added from test target
- imports added in-between tags
- mocks are no longer in a very nasty long file, but get generated
When a target did not import SourceryAutorProtocols types where not recognised and you could not generate mocks from annotations.
- no support for objective-c anymore