-
Notifications
You must be signed in to change notification settings - Fork 24
/
.sourcery.yml
66 lines (66 loc) · 2.97 KB
/
.sourcery.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# READ MORE ABOUT configuration here https://merowing.info/Sourcery/usage.html
configurations:
- sources:
include:
- iOS
templates:
- tools/Templates/
output:
path: iOSTests/Mocks/Generated
link:
project: ProtonPass.xcodeproj
target: iOSTests
group: iOSTests/Mocks/Generated
args:
testableImport: "Proton_Pass" # [MANDATORY] Your mocks will have "@testable import <testableImport>"
containedPathSubstringToApplyTemplate: "/iOS/" # [MANDATORY] If a protocol with Automockable annotation exists but it's path doesn't contain <focusFolder> it will be ignored.
# - sources:
# include:
# - LocalPackages/Client/Sources/Client
# templates:
# - tools/Templates/
# output:
# path: iOSTests/Mocks/Generated
# link:
# project: ProtonPass.xcodeproj
# target: iOSTests
# group: iOSTests/Mocks/Generated
# args:
# testableImport: "Client" # [MANDATORY] Your mocks will have "@testable import <testableImport>"
# containedPathSubstringToApplyTemplate: "/LocalPackages/Client/Sources/Client/" # [MANDATORY] If a protocol with Automockable annotation exists but it's path doesn't contain <focusFolder> it will be ignored.
- sources:
include:
- LocalPackages/Client/Sources/Client
templates:
- tools/Templates/
output:
path: LocalPackages/Client/Sources/ClientMocks
args:
imports:
- "Client"
# testableImport: "Client" # [MANDATORY] Your mocks will have "@testable import <testableImport>"
containedPathSubstringToApplyTemplate: "/LocalPackages/Client/Sources/Client/" # [MANDATORY] If a protocol with Automockable annotation exists but it's path doesn't contain <focusFolder> it will be ignored.
- sources:
include:
- LocalPackages/Core/Sources/Core
templates:
- tools/Templates/
output:
path: LocalPackages/Core/Sources/CoreMocks
args:
imports:
- "Core"
# testableImport: "Core" # [MANDATORY] Your mocks will have "@testable import <testableImport>"
containedPathSubstringToApplyTemplate: "/LocalPackages/Core/Sources/Core/" # [MANDATORY] If a protocol with Automockable annotation exists but it's path doesn't contain <focusFolder> it will be ignored.
- sources:
include:
- LocalPackages/UseCases/Sources/UseCases
templates:
- tools/Templates/
output:
path: LocalPackages/UseCases/Sources/UseCasesMocks
args:
imports:
- "UseCases"
# testableImport: "UseCases" # [MANDATORY] Your mocks will have "@testable import <testableImport>"
containedPathSubstringToApplyTemplate: "/LocalPackages/UseCases/Sources/UseCases/" # [MANDATORY] If a protocol with Automockable annotation exists but it's path doesn't contain <focusFolder> it will be ignored.