This is an automated email from the ASF dual-hosted git repository.

ababiichuk pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 2bd65e8  AMBARI-25150 Implement additional error reporting for 
ambari-web unit tests. (ababiichuk)
2bd65e8 is described below

commit 2bd65e811d26210a507ee92a2da421756ebffe1b
Author: ababiichuk <ababiic...@hortonworks.com>
AuthorDate: Fri Feb 8 13:30:31 2019 +0200

    AMBARI-25150 Implement additional error reporting for ambari-web unit 
tests. (ababiichuk)
---
 ambari-web/app/assets/test/tests.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/ambari-web/app/assets/test/tests.js 
b/ambari-web/app/assets/test/tests.js
index ca7b58b..b402a9d 100644
--- a/ambari-web/app/assets/test/tests.js
+++ b/ambari-web/app/assets/test/tests.js
@@ -585,7 +585,13 @@ describe('Ambari Web Unit tests', function() {
 
   files.forEach(function (file) {
     describe(file, function() {
-      require(file);
+      try {
+        require(file);
+      } catch (error) {
+        it('Execution of test suite was terminated', function () {
+          throw error;
+        });
+      }
     });
   });
 

Reply via email to