Fix for failed test stopping tests in ReactTestsApp

This commit is contained in:
Scott Kyle 2016-06-14 00:55:33 -07:00
parent 3307bf0a26
commit 030807e2b9
1 changed files with 9 additions and 1 deletions

View File

@ -52,14 +52,22 @@ export function getTestNames() {
export async function runTests() {
let testNames = getTestNames();
let passed = true;
for (let suiteName in testNames) {
console.log('Starting ' + suiteName);
for (let testName of testNames[suiteName]) {
await runTest(suiteName, testName);
try {
await runTest(suiteName, testName);
}
catch (e) {
passed = false;
}
}
}
return passed;
}
export async function runTest(suiteName, testName) {