Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running an arbitrary number of selected specs (instead of only a single) #381

Open
fcy opened this issue Sep 25, 2013 · 2 comments

Comments

@fcy
Copy link

fcy commented Sep 25, 2013

Kiwi can already run a single spec using KW_SPEC environment variable. This could be improved to run any numbers of specs. Maybe with this format:

<file name>:<line number of spec>[,<line number of spec>][;<file name>:<line number of spec>[,<line number of spec>]]

The AppCode guys that suggested this feature in their issue tracker so they can add complete support to Kiwi. I'd love that since I'm a user of both products.

@stepanhruda
Copy link
Member

Actually, KW_SPEC is causing problems right now, because it uses atos, which is not available on devices.

Also, atos is considerably slow, it might work for one spec, but figuring out call sites for multiple specs considerably increased testing time when I was testing it.

We'll need to figure out in more detail how to approach this.

@paulz
Copy link
Contributor

paulz commented Nov 15, 2015

To run selected specs we use the following method:

  1. Duplicate scheme with test into something like 'Selected Specs'
  2. Mark 'Selected Specs' as not Shared
  3. Edit new Xcode scheme and in Test action Info tab under Tests expand interested Test target
  4. Uncheck some of the specs to exclude them from 'Selected Specs' scheme test run

We usually keep 2 private schemes: 'Single Spec' and 'Selected Specs' as names suggest to run specs faster and focus on failing tests. Our .gitignore has xcuserdata to exclude private schemes.

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

No branches or pull requests

3 participants