How does google test make test sequence

Rasmi Ranjan Nayak picture Rasmi Ranjan Nayak · Oct 5, 2012 · Viewed 13.4k times · Source

How google-test makes test sequence (or order of test case execution) for testing test cases?

Suppose I have 5 test cases.

TEST(First, first)
TEST(Secnd, secnd)
TEST(Third, third)
...
TEST(Fifth, fifth)

How google-test test above test cases? I mean in what sequence? Or can we provide any test sequence?

Answer

Peter Wood picture Peter Wood · Oct 5, 2012

By default it will test them in the order it finds them at link time, which will depend upon your tools.

You can select which tests to run, such as a subset, or a single test.

There is also an option to run them in a random order.