3

With xcode 7 there was and alphabetic or numeric order of executing test cases when starts multiple test cases. E.g.

  • test3()
  • test9()
  • test6()
  • test5()
  • test7()
  • test4()
  • test8()

These cases will be executed in order 3-4-5-6-7-8-9

Now with xcode 8 test cases seems to be started in random order. My question is: Is there a some setting or how to make this to to run test is some order.

Swift Dev Journal
  • 19,282
  • 4
  • 56
  • 66
huliganta
  • 39
  • 2
  • 3
    Possible duplicate of [In XCode 8, what is the way to make test methods run in a particular order within a given XCTestCase class?](http://stackoverflow.com/questions/39602686/in-xcode-8-what-is-the-way-to-make-test-methods-run-in-a-particular-order-withi) – blurb Nov 16 '16 at 17:10

1 Answers1

1
  1. Tests should be able to work in random order.
  2. According this answer: test order from command line and from Xcode are different.
Community
  • 1
  • 1
Maxim Kholyavkin
  • 4,463
  • 2
  • 37
  • 82