New integration tests:

* New tests for autobridging and freeze
* Discrepancy detection tests
* Don't let Mocha suppress load time errors
This commit is contained in:
Nicholas Dudfield
2014-05-26 18:58:24 +07:00
committed by Nik Bougalis
parent 0848e348bb
commit e14c700c60
16 changed files with 6506 additions and 157 deletions

View File

@@ -0,0 +1,19 @@
mocha = require("mocha")
// Stash a reference away to this
old_loader = mocha.prototype.loadFiles
if (!old_loader.monkey_patched) {
// Gee thanks Mocha ...
mocha.prototype.loadFiles = function() {
try {
old_loader.apply(this, arguments);
} catch (e) {
// Normally mocha just silently bails
console.error(e.stack);
// We throw, so mocha doesn't continue trying to run the test suite
throw e;
}
}
mocha.prototype.loadFiles.monkey_patched = true;
};