ensure karma fails if it cannot load all spec files
This commit is contained in:
parent
0b97dd7ee4
commit
8d29e4c4e3
1 changed files with 6 additions and 2 deletions
|
@ -34,7 +34,11 @@ testsContext.keys().forEach(function (path) {
|
||||||
try {
|
try {
|
||||||
testsContext(path);
|
testsContext(path);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('[ERROR] WITH SPEC FILE: ', path);
|
console.error('[ERROR] Unable to load spec: ', path);
|
||||||
console.error(err);
|
describe('Test bundle', function () {
|
||||||
|
it(`includes '${path}'`, function () {
|
||||||
|
expect(err).toBeNull();
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue