# Xcode testing "-only-testing" and "-skip-testing" flags

**URL:** <https://discuss.bitrise.io/t/xcode-testing-only-testing-and-skip-testing-flags/9755>\
**Category:** Released\
**Tags:** testing, xcode\
**Created:** [July 24, 2019, 4:14pm UTC](https://discuss.bitrise.io/t/xcode-testing-only-testing-and-skip-testing-flags/9755 "2019-07-24T16:14:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DlgVladlex](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/dlgvladlex/32/2418_2.png) [@DlgVladlex](https://discuss.bitrise.io/u/DlgVladlex)\
**Post date:** [July 24, 2019, 4:14pm UTC](https://discuss.bitrise.io/t/xcode-testing-only-testing-and-skip-testing-flags/9755/1 "2019-07-24T16:14:32Z")

</div>

## Description of the feature request

There are two flags used for testing with xcodebuild: “-only-testing” and “skip-testing”. They describe test suites (aka groups) that need to be tested. So, the scheme can contain many suits, but this flags tell xcodebuild to test only some of them.  
It would be great to be able to optionally set one of this flag in “Xcode Test for iOS” workflow step.

## Use case / for what or how I would use it

I have a project with a scheme which has two groups on tests (the unit tests and the integration tests). For pull requests into develop I want to run unit-tests and once a day I want to run integration tests (because it’s long to perform and gives additional traffic usage). Also, I do not want to duplicate the scheme.  
I want just run xcodebuild tests with a flag “-only-testing:UnitTests” for the first case and “-only-testing:IntTests” for the second one.

---

<div class="post-metadata">

**Author:** ![DlgVladlex](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/dlgvladlex/32/2418_2.png) [@DlgVladlex](https://discuss.bitrise.io/u/DlgVladlex)\
**Post date:** [July 24, 2019, 8:57pm UTC](https://discuss.bitrise.io/t/xcode-testing-only-testing-and-skip-testing-flags/9755/2 "2019-07-24T20:57:41Z")

</div>

Oh’ I’ve got it.  
There is no such option in UI, but I can use “Debug” section to add any flags to xcodebuild call!

That’s cool!

BTW, still want this option or a comment about the ability to set it in the debug section at least.

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [July 26, 2019, 9:08am UTC](https://discuss.bitrise.io/t/xcode-testing-only-testing-and-skip-testing-flags/9755/3 "2019-07-26T09:08:09Z")

</div>

Hi @DlgVladlex!

Thanks for the feature request! Glad to hear you’ve found the option! I’m a bit confused as to what do you mean by

> BTW, still want this option or a comment about the ability to set it in the debug section at least.

Do you mean that this should be displayed more clearly somewhere on the step? Can you perhaps explain or edit your request accordingly? 🙂

---

<div class="post-metadata">

**Author:** ![DlgVladlex](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/dlgvladlex/32/2418_2.png) [@DlgVladlex](https://discuss.bitrise.io/u/DlgVladlex)\
**Post date:** [July 26, 2019, 9:42am UTC](https://discuss.bitrise.io/t/xcode-testing-only-testing-and-skip-testing-flags/9755/4 "2019-07-26T09:42:46Z")

</div>

1. I would like to see something like this:  

2. As long as the first way is not implemented for any reason it may be useful to extend the description of Step like this:

 ![28](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/7/763109153908d5df7a7401486aa91fbe3acc7cf3.png)

The way 2 is useful because it’s not so easy to figure out that you can set flags for an xcodebuild call at all.
