From 5a60136faa11464b0461d260ca603bc1bd5085ce Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Fri, 27 Mar 2020 20:15:54 -0500 Subject: [PATCH 1/2] Put leftover tests into the last test bundle when packing tests using time estimates --- bluepill/src/BPPacker.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bluepill/src/BPPacker.m b/bluepill/src/BPPacker.m index 8c15df95..f91a88a5 100644 --- a/bluepill/src/BPPacker.m +++ b/bluepill/src/BPPacker.m @@ -146,6 +146,10 @@ @implementation BPPacker if (splitExecTime + [testTimes[test] doubleValue] <= optimalBundleTime) { splitExecTime += [testTimes[test] doubleValue]; } else { + if ([bundles count] == [[config numSims] integerValue] - 1) { + // Put all of the remaining tests into the last bundle + i = (int)[bundleTestsToRun count]; + } break; } } From 7daa699084060dceb79687feb3249bf5b5b29f8c Mon Sep 17 00:00:00 2001 From: Kent Sutherland Date: Fri, 27 Mar 2020 20:18:47 -0500 Subject: [PATCH 2/2] Added test-time-estimates-json to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d285cb3b..48ccc2e5 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ A full list supported options are listed here. | videos-directory | n/a | Directory where videos of test runs will be saved. If not provided, videos are not recorded. | N | n/a | | video-paths | -V | A list of videos that will be saved in the simulators. | N | n/a | | image-paths | -I | A list of images that will be saved in the simulators. | N | n/a | +|test-time-estimates-json| -j | Path of the input file with test execution time estimates | N | n/a | | unsafe-skip-xcode-version-check | | Skip Xcode version check | N | NO | | retry-app-crash-tests | | Retry tests that crashed app and consider it non-fatal if it passes on retry. | N | false |