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

extremely slow unit tests in Xcode 7 #181

Open
c3farrell opened this issue Sep 17, 2015 · 9 comments
Open

extremely slow unit tests in Xcode 7 #181

c3farrell opened this issue Sep 17, 2015 · 9 comments

Comments

@c3farrell
Copy link

Summary:
Xcode 6.4 ran 3000 specta unit tests in about 40 seconds.
Xcode 7 runs about 500 specta unit tests in about 5 minutes.

Steps to Reproduce:

  1. new project
  2. write substantial number of unit tests
  3. run unit tests

Expected Results:
expect the unit tests to run as fast or faster in Xcode 7 as Xcode 6.4

Actual Results:
unit tests run much slower in Xcode 7 than they did in Xcode 6.4

Version:
Xcode 7, OS X 10.10.5

@rbaumbach
Copy link

+1

1 similar comment
@michaeltansg
Copy link

+1

@rbaumbach
Copy link

After much investigation on this issue, it was determined that the culprit is in fact the iOS 9 simulator. If you download the 8.4 version (if you haven't already) and run your specs with it, it will be as fast as it used to be.

I'm not sure what else we can do other than to let Apple know that the iOS 9 simulator is extremely slow.

@orta
Copy link
Member

orta commented Sep 21, 2015

sigh

@fatuhoku
Copy link

Sigh indeed. I would love to practise test-driven development but at every turn, it's either compilation, or the speed of loading the tests, the performance of the simulator, that erodes at the benefits of testing.

@StatusReport
Copy link

The workaround we currently did is to remove the verify-after-running of class methods (if you mock class methods, you probably want to refactor your code for many reasons anyway), which dramatically speeded up things. See Lightricks/ocmock@6d8f2c5.

@tonyarnold
Copy link
Contributor

There have been a few comments from Apple engineers on Twitter that the slowness in running unit tests is an OS X bug. No word on whether it's fixed in 10.10.2 beta.

@programmerdave
Copy link

Any updates on this from Apple dev? Is there a radar ticket open for this?

@aterribili
Copy link

+1

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

9 participants