Swiftpack.co - Package - dooZdev/template-sourcery

template-sourcery

Sourcery template for generating:

  • mocks
  • protocols

Inline and in one go. See example Framework Fooand FooMockfor possible use cases.

swift run --package-path BuildTools -c release Highway sourcery --sourcery-templates . --products Foo

Thanks to!

github sourcery

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

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 // imports:begin & // imports:end
  • mocks are no longer in a very nasty long file, but get generated

bug fix

When a target did not import SourceryAutorProtocols types where not recognised and you could not generate mocks from annotations.

deprecating

  • no support for objective-c anymore

Clean - 2020-01-31 11:37:34

swift 5.1 - 2019-07-26 12:20:45

Protocol template can handle default arguments and support swift 5.0 - 2019-07-22 13:10:06

Beta stable release - 2019-06-06 19:14:29

Fix minor issues and add SourceryAutoProtocols via SwiftPM - 2019-03-07 12:20:33

- 2018-12-29 11:51:10

Generate Mocks - 2018-12-29 11:29:23