CocoaPods / CocoaPods/Xcodeproj
Not all targets respond to test_target_type
- Dominant language
- Ruby
- Stars
- 2.4k
- Forks
- 488
- PR merge metrics
- No merged PRs in 30d
Description
In https://github.com/fastlane/fastlane/pull/12212, @joshdholtz had to do the following because aggregate targets don't respond to `test_target_type?`:
```diff
- non_test_targets = targets.reject(&:test_target_type?)
+ non_test_targets = targets.reject do |t|
+ # Not all targets respond to `test_target_type?`
+ t.respond_to?(:test_target_type?) && t.test_target_type?
+ end
```
It would be nice if aggregate targets (and others?) would respond to `test_target_type?` by returning `false` instead of throwing an exception
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.