Skip to content

Conversation

plemarquand
Copy link
Contributor

@plemarquand plemarquand commented Sep 29, 2025

Description

When debugging tests we were appending additionalTestArgs to the build invocation. If the user has any incompatible flags that work for swift test but not swift build, this invocation will fail (i.e. --no-parallel).

Filter down additionalTestArgs when performing the build to only swift build compatible arguments. All additionalTestArgs are still passed to the executable when tests are run.

Issue: #1863

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

debugging

When debugging tests we were appending `additionalTestArgs` to the build
invocation. If the user has any incompatible flags that work for `swift
test` but not `swift build`, this invocation will fail (i.e.
`--no-parallel`).

Filter down `additionalTestArgs` when performing the build to only
`swift build` compatible arguments. All `additionalTestArgs` are still
passed to the executable when tests are run.

Issue: swiftlang#1863
@plemarquand plemarquand force-pushed the no-test-args-for-builds branch from 20ca435 to e00461c Compare September 29, 2025 17:12
@plemarquand plemarquand merged commit 568270b into swiftlang:main Sep 30, 2025
45 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants