There is no way to do this in the source. A possible solution uses shell scripts and runs tests using a filter.
Python example:
from subprocess import call def runTest(pattern): return call(['test', '--gtest_filter=%s' % pattern]) if runTest('FirstPriorityTestPattern') == 0: return runTest('SecondPriorityTestPattern') return 1
source share