From f1daed83ae20cce58b7bbe00d247a52c972de51d Mon Sep 17 00:00:00 2001 From: John Wen Date: Tue, 8 Jul 2014 17:01:33 -0700 Subject: [PATCH] Print run seed value at beginning of test run If the run aborts for whatever reason, then you can know the seed value that will reproduce the same order that caused the run to terminate. --- Sources/Classes/SLTestController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Classes/SLTestController.m b/Sources/Classes/SLTestController.m index 7c05075..ad66fc5 100644 --- a/Sources/Classes/SLTestController.m +++ b/Sources/Classes/SLTestController.m @@ -329,6 +329,8 @@ - (void)_beginTesting { if (_runningWithPredeterminedSeed) { SLLog(@"Running tests in order as predetermined by seed %u.", _runSeed); + } else { + SLLog(@"Running tests in order using random seed %u.", _runSeed); } if (_runningWithFocus) { SLLog(@"Focusing on test cases in specific tests: %@.", [_testsToRun componentsJoinedByString:@","]);