Stabilized TestIdTestApp integration test

Summary:
- TestIdTestModule instrumentation tests is responsible for too many occasional crashes, e.g. https://circleci.com/gh/facebook/react-native/7054.
This should fix the problem (will monitor over next week)

- Made file naming more consistent

- 5 retries don't make e2e tests more stable, reduced back to 3 but I need to investigate how to make it more reliable
Closes https://github.com/facebook/react-native/pull/7784

Differential Revision: D3354444

fbshipit-source-id: d058362edbec09522a4828998e01988a82a74487
This commit is contained in:
Konstantin Raev
2016-05-26 13:35:12 -07:00
committed by Facebook Github Bot 0
parent a96fcc7ce1
commit 7ca8e0e8b1
6 changed files with 15 additions and 7 deletions

View File

@@ -42,8 +42,10 @@ let exitCode = 0;
testClasses.forEach((testClass) => {
if (tryExecNTimes(
() => {
echo(`Starting ${testClass}`);
// any faster means Circle CI crashes
exec('sleep 10s');
return exec(`./scripts/run-android-instrumentation-tests.sh ${argv.package} ${testClass}`).code;
return exec(`./scripts/run-instrumentation-tests-via-adb-shell.sh ${argv.package} ${testClass}`).code;
},
numberOfRetries)) {
echo(`${testClass} failed ${numberOfRetries} times`);