123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- module.exports = {
- main: {
- // src is used to build list of less files to compile
- src: [
- "test/less/*.less",
- "!test/less/plugin-preeval.less", // uses ES6 syntax
- // Don't test NPM import, obviously
- "!test/less/plugin-module.less",
- "!test/less/import-module.less",
- "!test/less/javascript.less",
- "!test/less/urls.less",
- "!test/less/empty.less"
- ],
- options: {
- helpers: "test/browser/runner-main-options.js",
- specs: "test/browser/runner-main-spec.js",
- outfile: "tmp/browser/test-runner-main.html"
- }
- },
- legacy: {
- src: ["test/less/legacy/*.less"],
- options: {
- helpers: "test/browser/runner-legacy-options.js",
- specs: "test/browser/runner-legacy-spec.js",
- outfile: "tmp/browser/test-runner-legacy.html"
- }
- },
- strictUnits: {
- src: ["test/less/strict-units/*.less"],
- options: {
- helpers: "test/browser/runner-strict-units-options.js",
- specs: "test/browser/runner-strict-units-spec.js",
- outfile: "tmp/browser/test-runner-strict-units.html"
- }
- },
- errors: {
- src: [
- "test/less/errors/*.less",
- "!test/less/errors/javascript-error.less",
- "test/browser/less/errors/*.less"
- ],
- options: {
- timeout: 20000,
- helpers: "test/browser/runner-errors-options.js",
- specs: "test/browser/runner-errors-spec.js",
- outfile: "tmp/browser/test-runner-errors.html"
- }
- },
- noJsErrors: {
- src: ["test/less/no-js-errors/*.less"],
- options: {
- helpers: "test/browser/runner-no-js-errors-options.js",
- specs: "test/browser/runner-no-js-errors-spec.js",
- outfile: "tmp/browser/test-runner-no-js-errors.html"
- }
- },
- browser: {
- src: [
- "test/browser/less/*.less",
- "test/browser/less/plugin/*.less"
- ],
- options: {
- helpers: "test/browser/runner-browser-options.js",
- specs: "test/browser/runner-browser-spec.js",
- outfile: "tmp/browser/test-runner-browser.html"
- }
- },
- relativeUrls: {
- src: ["test/browser/less/relative-urls/*.less"],
- options: {
- helpers: "test/browser/runner-relative-urls-options.js",
- specs: "test/browser/runner-relative-urls-spec.js",
- outfile: "tmp/browser/test-runner-relative-urls.html"
- }
- },
- rewriteUrls: {
- src: ["test/browser/less/rewrite-urls/*.less"],
- options: {
- helpers: "test/browser/runner-rewrite-urls-options.js",
- specs: "test/browser/runner-rewrite-urls-spec.js",
- outfile: "tmp/browser/test-runner-rewrite-urls.html"
- }
- },
- rootpath: {
- src: ["test/browser/less/rootpath/*.less"],
- options: {
- helpers: "test/browser/runner-rootpath-options.js",
- specs: "test/browser/runner-rootpath-spec.js",
- outfile: "tmp/browser/test-runner-rootpath.html"
- }
- },
- rootpathRelative: {
- src: ["test/browser/less/rootpath-relative/*.less"],
- options: {
- helpers: "test/browser/runner-rootpath-relative-options.js",
- specs: "test/browser/runner-rootpath-relative-spec.js",
- outfile: "tmp/browser/test-runner-rootpath-relative.html"
- }
- },
- rootpathRewriteUrls: {
- src: ["test/browser/less/rootpath-rewrite-urls/*.less"],
- options: {
- helpers:
- "test/browser/runner-rootpath-rewrite-urls-options.js",
- specs: "test/browser/runner-rootpath-rewrite-urls-spec.js",
- outfile:
- "tmp/browser/test-runner-rootpath-rewrite-urls.html"
- }
- },
- production: {
- src: ["test/browser/less/production/*.less"],
- options: {
- helpers: "test/browser/runner-production-options.js",
- specs: "test/browser/runner-production-spec.js",
- outfile: "tmp/browser/test-runner-production.html"
- }
- },
- modifyVars: {
- src: ["test/browser/less/modify-vars/*.less"],
- options: {
- helpers: "test/browser/runner-modify-vars-options.js",
- specs: "test/browser/runner-modify-vars-spec.js",
- outfile: "tmp/browser/test-runner-modify-vars.html"
- }
- },
- globalVars: {
- src: ["test/browser/less/global-vars/*.less"],
- options: {
- helpers: "test/browser/runner-global-vars-options.js",
- specs: "test/browser/runner-global-vars-spec.js",
- outfile: "tmp/browser/test-runner-global-vars.html"
- }
- },
- postProcessorPlugin: {
- src: ["test/less/postProcessorPlugin/*.less"],
- options: {
- helpers: [
- "test/plugins/postprocess/index.js",
- "test/browser/runner-postProcessorPlugin-options.js"
- ],
- specs: "test/browser/runner-postProcessorPlugin.js",
- outfile:
- "tmp/browser/test-runner-post-processor-plugin.html"
- }
- },
- preProcessorPlugin: {
- src: ["test/less/preProcessorPlugin/*.less"],
- options: {
- helpers: [
- "test/plugins/preprocess/index.js",
- "test/browser/runner-preProcessorPlugin-options.js"
- ],
- specs: "test/browser/runner-preProcessorPlugin.js",
- outfile: "tmp/browser/test-runner-pre-processor-plugin.html"
- }
- },
- visitorPlugin: {
- src: ["test/less/visitorPlugin/*.less"],
- options: {
- helpers: [
- "test/plugins/visitor/index.js",
- "test/browser/runner-VisitorPlugin-options.js"
- ],
- specs: "test/browser/runner-VisitorPlugin.js",
- outfile: "tmp/browser/test-runner-visitor-plugin.html"
- }
- },
- filemanagerPlugin: {
- src: ["test/less/filemanagerPlugin/*.less"],
- options: {
- helpers: [
- "test/plugins/filemanager/index.js",
- "test/browser/runner-filemanagerPlugin-options.js"
- ],
- specs: "test/browser/runner-filemanagerPlugin.js",
- outfile: "tmp/browser/test-runner-filemanager-plugin.html"
- }
- }
- }
|