mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
* Add a self-test skip option Meteor's CI infrastructure is configured to exclude certain `self-test`'s on each run. These excludes are specified in each CI environment's config file, and included when running `meteor self-test`. Developers running `meteor self-test` locally however are not using these excludes by default, so developer's have to manually look up the current exclude list from one of the CI configs, then add these excludes to their own `meteor self-test` call manually. This commit adds a new `skip` option to Meteor's `self-test` system, that can be used to skip adding/running a defined `self-test` (similar in concept to Mocha's `skip` feature). This provides a way to skip the running of older `self-test`'s that are no longer needed, but allows them to be preserved in the `self-test` suite, for future reference. With this functionality in place, and the older test suites updated to use it, Meteor's base CI excludes no longer need to be maintained in their respective config files. The excludes are all managed at the source (the test definition), and can be leveraged by anyone/anything calling `meteor self-test`. * Log message describing skipped test * Add manually-ignored count to self-test summary * Small comment correction * History.md entry with PR link
27 lines
885 B
JavaScript
27 lines
885 B
JavaScript
var selftest = require('../tool-testing/selftest.js');
|
|
var Sandbox = selftest.Sandbox;
|
|
|
|
selftest.skip.define("minifiers can't register non-js/non-css extensions", [], function () {
|
|
var s = new Sandbox();
|
|
var run;
|
|
|
|
s.createApp("myapp", "minifier-plugin-bad-extension", { dontPrepareApp: true });
|
|
s.cd("myapp");
|
|
|
|
run = s.run();
|
|
run.match("foo: Minifiers are only allowed to register \"css\" or \"js\" extensions.");
|
|
run.stop();
|
|
});
|
|
|
|
selftest.skip.define("minifiers: apps can't use more than one package providing a minifier for the same extension", [], function () {
|
|
var s = new Sandbox();
|
|
var run;
|
|
|
|
s.createApp("myapp", "minifier-plugin-multiple-minifiers-for-js", { dontPrepareApp: true });
|
|
s.cd("myapp");
|
|
|
|
run = s.run("--production");
|
|
run.match("local-plugin, local-plugin-2: multiple packages registered minifiers for extension \"js\".");
|
|
run.stop();
|
|
});
|