summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-07 11:41:29 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-07 14:24:47 -0600
commit8d29e4c4e3efec92526f512f59bd9fa5dc99ef1f (patch)
treea4906a1a449f60320a1db930af8700bd71d8bc83
parent0b97dd7ee4d63f9380c476ec31d170d2601f793a (diff)
downloadgitlab-ce-fix-ignored-spec-failures.tar.gz
ensure karma fails if it cannot load all spec filesfix-ignored-spec-failures
-rw-r--r--spec/javascripts/test_bundle.js8
1 files 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();
+ });
+ });
}
});