-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
76 lines (63 loc) · 2.85 KB
/
Makefile
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
67
68
69
70
71
72
73
74
75
76
setup:
brew bundle
swiftgen:
swiftgen
swiftformat ./Projects/Shared/Sources/AppResource ./Projects/Shared/Sources/Localization
setup_swiftformat_hook:
mkdir -p .git/hooks
cp ./Scripts/pre-commit .git/hooks/pre-commit
chmod 755 .git/hooks/pre-commit
project:
tuist generate
mock_app:
mockolo -s Projects/App \
--mockfiles Projects/Shared/Sources/AppTestSupport/RIBsMocks.swift \
Projects/Feature/*/Sources/*TestSupport/*InterfaceMocks.swift \
-d Projects/App/Tests/AppMocks.swift \
-i MiniSuperApp \
-x Feature Tests Resources Resource Localization \
--use-mock-observable \
--mock-final \
--custom-imports AppTestSupport \
--exclude-imports NeedleFoundation AppFoundation AppResource DesignSystem Localization Network\
swiftformat ./Projects/App/Tests/AppMocks.swift
# make domain=Bootstrap mock_domain
mock_domain:
mockolo -s Projects/Data/$(domain)Domain/Sources/$(domain)Domain \
-d Projects/Data/$(domain)Domain/Sources/$(domain)DomainTestSupport/$(domain)DomainMocks.swift \
--use-mock-observable \
--mock-final \
--custom-imports $(domain)Domain\
--exclude-imports NeedleFoundation AppFoundation AppResource DesignSystem Localization Network UIKit\
swiftformat Projects/Data/$(domain)Domain/Sources/$(domain)DomainTestSupport/$(domain)DomainMocks.swift
# make data=Bootstrap mock_data
mock_data:
mockolo -s Projects/Data/$(data)Data/Sources/$(data)Data \
-d Projects/Data/$(data)Data/Sources/$(data)DataTests/$(data)DataMocks.swift \
--use-mock-observable \
--mock-final \
--custom-imports $(data)Data\
--exclude-imports NeedleFoundation AppFoundation AppResource DesignSystem Localization Network UIKit\
swiftformat Projects/Data/$(data)Data/Sources/$(data)DataTests/$(data)DataMocks.swift
# make feature=Splash mock_interface
mock_interface:
mockolo -s Projects/Feature/$(feature)/Sources/$(feature)Interface \
--mockfiles Projects/Shared/Sources/AppTestSupport/RIBsMocks.swift \
-d Projects/Feature/$(feature)/Sources/$(feature)TestSupport/$(feature)InterfaceMocks.swift \
--use-mock-observable \
--mock-final \
--custom-imports AppTestSupport $(feature)Interface\
--exclude-imports NeedleFoundation AppFoundation AppResource DesignSystem Localization Network UIKit\
swiftformat Projects/Feature/$(feature)/Sources/$(feature)TestSupport/$(feature)InterfaceMocks.swift
# make feature=Splash mock
mock:
mockolo -s Projects/Feature/$(feature)/Sources \
--mockfiles Projects/Shared/Sources/AppTestSupport/RIBsMocks.swift \
-d Projects/Feature/$(feature)/Tests/$(feature)Tests/$(feature)Mocks.swift \
-i $(feature) \
-x Tests Resources Resource Localization \
--use-mock-observable \
--mock-final \
--custom-imports AppTestSupport \
--exclude-imports NeedleFoundation AppFoundation AppResource DesignSystem Localization Network UIKit\
swiftformat Projects/Feature/$(feature)/Tests/$(feature)Tests/$(feature)Mocks.swift