Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 3764639

Browse files
nguyenhuyAdlai Holler
authored andcommitted
Buck: use snapshot_reference_images_path instead of copying images to XCTest bundle (#2915)
1 parent b3be451 commit 3764639

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

.buckversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c948c20ebb155904909af05cfd16428a6992b98d
1+
f399f484bf13b47bcc2bf0f2e092ab5d8de9f6e6

BUCK

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,6 @@ apple_resource(
149149
dirs = ['AsyncDisplayKitTests/TestResources'],
150150
)
151151

152-
apple_resource(
153-
name = 'SnapshotTestsResources',
154-
files = [],
155-
dirs = [
156-
'AsyncDisplayKitTests/ReferenceImages_32',
157-
'AsyncDisplayKitTests/ReferenceImages_64',
158-
'AsyncDisplayKitTests/ReferenceImages_iOS_10',
159-
],
160-
)
161-
162152
apple_test(
163153
name = 'Tests',
164154
test_host_app = ':TestHost',
@@ -178,14 +168,14 @@ apple_test(
178168
# ASTextNodePerformanceTests are excluded (#2173)
179169
excludes = ['AsyncDisplayKitTests/ASTextNodePerformanceTests.m*']
180170
),
171+
snapshot_reference_images_path='AsyncDisplayKitTests/ReferenceImages',
181172
preprocessor_flags = COMMON_PREPROCESSOR_FLAGS + [
182173
'-Wno-implicit-function-declaration',
183174
],
184175
lang_preprocessor_flags = COMMON_LANG_PREPROCESSOR_FLAGS,
185176
linker_flags = COMMON_LINKER_FLAGS,
186177
deps = [
187178
':TestsResources',
188-
':SnapshotTestsResources',
189179
'//Pods/OCMock:OCMock',
190180
'//Pods/FBSnapshotTestCase:FBSnapshotTestCase',
191181
'//Pods/JGMethodSwizzler:JGMethodSwizzler',

0 commit comments

Comments
 (0)