Files
meteor/tools/tests/build-errors.js
David Glasser e579de45dd Fix legacy handlers. Fixes build-errors test
Note that this test started as a test of parseStack when a filename
contained a colon, and it no longer tests that since around 1.1 we
started trying to avoid putting colons in generated filenames for
Windows compatibility. But it still caught this legacy handler bug!
2015-07-11 18:04:20 -07:00

20 lines
675 B
JavaScript

var selftest = require('../selftest.js');
var Sandbox = selftest.Sandbox;
// This test was originally written to test the behavior of parse-stack.js when
// there's a colon in a filename. We now try a lot harder to avoid putting
// colons in filenames. But it's still a decent test that errors in legacy
// source handlers work.
selftest.define("build errors - legacy handler error", function () {
var s = new Sandbox();
var run;
s.createApp("myapp", "build-errors");
s.cd("myapp");
run = s.run("build", "myapp.tgz");
run.waitSecs(60);
run.matchErr("crash in plugin (compiling foo.awesome)");
run.expectExit(1);
run.forbidAll("Couldn't parse stack");
});