Skip to content

Instantly share code, notes, and snippets.

@Nikoloutsos
Created May 26, 2022 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikoloutsos/d60eb7a56957c46736ca4f51c18a9837 to your computer and use it in GitHub Desktop.
Save Nikoloutsos/d60eb7a56957c46736ca4f51c18a9837 to your computer and use it in GitHub Desktop.
Example foo yml for sourcery
# READ MORE ABOUT configuration here https://merowing.info/Sourcery/usage.html
configurations:
# -- Blueground configuration --
- sources:
include:
- FooApp
templates:
- Sourcery
output:
path: BluegroundTests/Sourcery
link:
project: ./FooApp.xcodeproj
target: FooAppTests
group: FooAppTests/Sourcery
args:
testableImport: "FooApp" # [MANDATORY] Your mocks will have "@testable import <testableImport>"
containedPathSubstringToApplyTemplate: "/FooApp/" # [MANDATORY] If a protocol with Automockable annotation exists but it's path doesn't contain <focusFolder> it will be ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment