gradle / gradle/gradle-native

XCTest integration in Xcode use the same build configuration as other targets

Open
#149 0 comments 0 reactions 0 assignees View on GitHub
a:feature in:xcode
Dominant language
No language data
Stars
94
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Tulsi use `__TulsiTestRunner_[Debug|Release]` as the build configuration in Xcode to silence the opinionated build process from Xcode and use Bazel build tool to do the automation. We settled on the same tactic for Gradle. However, the general feeling is we shouldn't need this workaround. More research needs to take place to ensure we aren't missing some other Xcode limitation.

### Expected Behavior
XCTest builds in Xcode use the same build configuration as all other targets removing the needs for `__GradleTestRunner_Debug` build configuration.

### Test Cases
- [ ] XCTest targets configure `Debug` build configuration
- [ ] The presence of XCTest target doesn't create `__GradleTestRunner_*` build configuration

Contributor guide

Open the contributing guide

Research direction

Start by researching how XCTest targets select build configurations in Xcode and compare that behavior with the existing Gradle workaround described in the issue. Verify whether XCTest targets can use Debug without creating __GradleTestRunner_* configurations, then check both listed test cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system, testing-qa
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.