From 2384f2cf9bda00060f53cf053fea2d45a765694b Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Wed, 14 Oct 2015 15:15:44 -0700 Subject: [PATCH] catch errors thrown from tests and display error information --- tests/ReactTests/index.ios.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ReactTests/index.ios.js b/tests/ReactTests/index.ios.js index 96beddf1..f24797f5 100644 --- a/tests/ReactTests/index.ios.js +++ b/tests/ReactTests/index.ios.js @@ -28,7 +28,6 @@ function runTests() { continue; } - console.log('-', testName); if (testSuite.beforeEach) { testSuite.beforeEach(); @@ -36,6 +35,11 @@ function runTests() { try { testSuite[testName](); + console.log('+ ' + testName); + } + catch (e) { + console.log('- ' + testName); + console.warn(e); } finally { if (testSuite.afterEach) {