Skip to content

Commit cfbe1e2

Browse files
committed
Add --enable-test-discovery option for test command
1 parent 3d45c04 commit cfbe1e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build-script.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def get_swiftpm_invocation(spm_exec, build_dir, parser_header_dir,
168168
swiftpm_call = ['swift', 'build']
169169
elif spm_exec == 'swift test':
170170
swiftpm_call = ['swift', 'test']
171+
172+
# To discover test files for Linux
173+
swiftpm_call.extend(['--enable-test-discovery'])
171174
else:
172175
swiftpm_call = [spm_exec]
173176

0 commit comments

Comments
 (0)