From 8d29e4c4e3efec92526f512f59bd9fa5dc99ef1f Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Tue, 7 Feb 2017 11:41:29 -0600 Subject: [PATCH] ensure karma fails if it cannot load all spec files --- spec/javascripts/test_bundle.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js index bf11ddbbea8..7df8d2fd8b4 100644 --- a/spec/javascripts/test_bundle.js +++ b/spec/javascripts/test_bundle.js @@ -34,7 +34,11 @@ testsContext.keys().forEach(function (path) { try { testsContext(path); } catch (err) { - console.error('[ERROR] WITH SPEC FILE: ', path); - console.error(err); + console.error('[ERROR] Unable to load spec: ', path); + describe('Test bundle', function () { + it(`includes '${path}'`, function () { + expect(err).toBeNull(); + }); + }); } });