Skip to content

Commit 51342b0

Browse files
Fix BitwardenKit's special handling of fixtures files
1 parent 79410a1 commit 51342b0

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

project-bwk.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,16 @@ targets:
150150
settings:
151151
base:
152152
INFOPLIST_FILE: BitwardenKit/Application/TestHelpers/Support/Info.plist
153-
templates:
154-
- TestTarget
155-
templateAttributes:
156-
sourcesPath: BitwardenKit
153+
# Can't use the TestTarget template here because it includes Fixtures, but those should be excluded
154+
# here and included in BitwardenKitMocks instead.
155+
sources:
156+
- path: BitwardenKit
157+
includes:
158+
- "**/*Tests.*"
159+
- "**/TestHelpers/*"
160+
excludes:
161+
- "**/*SnapshotTests.*"
162+
- "**/*ViewInspectorTests.*"
157163
dependencies:
158164
- target: AuthenticatorBridgeKitMocks
159165
- target: BitwardenKit
@@ -168,10 +174,13 @@ targets:
168174
settings:
169175
base:
170176
INFOPLIST_FILE: BitwardenKit/Application/TestHelpers/Support/Info.plist
171-
templates:
172-
- SnapshotTestTarget
173-
templateAttributes:
174-
sourcesPath: BitwardenKit
177+
# Can't use the SnapshotTestTarget template here because it includes Fixtures, but those should be excluded
178+
# here and included in BitwardenKitMocks instead.
179+
sources:
180+
- path: BitwardenKit
181+
includes:
182+
- "**/*SnapshotTests.*"
183+
- "**/TestHelpers/*"
175184
dependencies:
176185
- target: AuthenticatorBridgeKitMocks
177186
- target: BitwardenKit
@@ -185,10 +194,13 @@ targets:
185194
settings:
186195
base:
187196
INFOPLIST_FILE: BitwardenKit/Application/TestHelpers/Support/Info.plist
188-
templates:
189-
- ViewInspectorTestTarget
190-
templateAttributes:
191-
sourcesPath: BitwardenKit
197+
# Can't use the ViewInspectorTestTarget template here because it includes Fixtures, but those should be excluded
198+
# here and included in BitwardenKitMocks instead.
199+
sources:
200+
- path: BitwardenKit
201+
includes:
202+
- "**/*ViewInspectorTests.*"
203+
- "**/TestHelpers/*"
192204
dependencies:
193205
- target: AuthenticatorBridgeKitMocks
194206
- target: BitwardenKit

0 commit comments

Comments
 (0)