mercredi 26 juillet 2017

XCUI Test: How does test collection happen

The test collection in XCUI Test happens in alphabetical order

So, if there are test like

  • test_A
  • test_X
  • test_1A
  • DISABLE_test

the order of execution is

  • test_1A
  • test_A
  • test_X

and the DISABLE_test is not picked as it doesn't begin with test

I was wondering how do I intelligently name the tests to run them in order.

First solution i thought was use numbers, but

  • test_1a
  • test_2b
  • test_10c

the tests execute in order,

  • test_1a
  • test_10c
  • test_2b

which is not the intended order.

What is the better design?

Aucun commentaire:

Enregistrer un commentaire