runner.config.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. module.exports = {
  2. main: {
  3. // src is used to build list of less files to compile
  4. src: [
  5. "test/less/*.less",
  6. "!test/less/plugin-preeval.less", // uses ES6 syntax
  7. // Don't test NPM import, obviously
  8. "!test/less/plugin-module.less",
  9. "!test/less/import-module.less",
  10. "!test/less/javascript.less",
  11. "!test/less/urls.less",
  12. "!test/less/empty.less"
  13. ],
  14. options: {
  15. helpers: "test/browser/runner-main-options.js",
  16. specs: "test/browser/runner-main-spec.js",
  17. outfile: "tmp/browser/test-runner-main.html"
  18. }
  19. },
  20. legacy: {
  21. src: ["test/less/legacy/*.less"],
  22. options: {
  23. helpers: "test/browser/runner-legacy-options.js",
  24. specs: "test/browser/runner-legacy-spec.js",
  25. outfile: "tmp/browser/test-runner-legacy.html"
  26. }
  27. },
  28. strictUnits: {
  29. src: ["test/less/strict-units/*.less"],
  30. options: {
  31. helpers: "test/browser/runner-strict-units-options.js",
  32. specs: "test/browser/runner-strict-units-spec.js",
  33. outfile: "tmp/browser/test-runner-strict-units.html"
  34. }
  35. },
  36. errors: {
  37. src: [
  38. "test/less/errors/*.less",
  39. "!test/less/errors/javascript-error.less",
  40. "test/browser/less/errors/*.less"
  41. ],
  42. options: {
  43. timeout: 20000,
  44. helpers: "test/browser/runner-errors-options.js",
  45. specs: "test/browser/runner-errors-spec.js",
  46. outfile: "tmp/browser/test-runner-errors.html"
  47. }
  48. },
  49. noJsErrors: {
  50. src: ["test/less/no-js-errors/*.less"],
  51. options: {
  52. helpers: "test/browser/runner-no-js-errors-options.js",
  53. specs: "test/browser/runner-no-js-errors-spec.js",
  54. outfile: "tmp/browser/test-runner-no-js-errors.html"
  55. }
  56. },
  57. browser: {
  58. src: [
  59. "test/browser/less/*.less",
  60. "test/browser/less/plugin/*.less"
  61. ],
  62. options: {
  63. helpers: "test/browser/runner-browser-options.js",
  64. specs: "test/browser/runner-browser-spec.js",
  65. outfile: "tmp/browser/test-runner-browser.html"
  66. }
  67. },
  68. relativeUrls: {
  69. src: ["test/browser/less/relative-urls/*.less"],
  70. options: {
  71. helpers: "test/browser/runner-relative-urls-options.js",
  72. specs: "test/browser/runner-relative-urls-spec.js",
  73. outfile: "tmp/browser/test-runner-relative-urls.html"
  74. }
  75. },
  76. rewriteUrls: {
  77. src: ["test/browser/less/rewrite-urls/*.less"],
  78. options: {
  79. helpers: "test/browser/runner-rewrite-urls-options.js",
  80. specs: "test/browser/runner-rewrite-urls-spec.js",
  81. outfile: "tmp/browser/test-runner-rewrite-urls.html"
  82. }
  83. },
  84. rootpath: {
  85. src: ["test/browser/less/rootpath/*.less"],
  86. options: {
  87. helpers: "test/browser/runner-rootpath-options.js",
  88. specs: "test/browser/runner-rootpath-spec.js",
  89. outfile: "tmp/browser/test-runner-rootpath.html"
  90. }
  91. },
  92. rootpathRelative: {
  93. src: ["test/browser/less/rootpath-relative/*.less"],
  94. options: {
  95. helpers: "test/browser/runner-rootpath-relative-options.js",
  96. specs: "test/browser/runner-rootpath-relative-spec.js",
  97. outfile: "tmp/browser/test-runner-rootpath-relative.html"
  98. }
  99. },
  100. rootpathRewriteUrls: {
  101. src: ["test/browser/less/rootpath-rewrite-urls/*.less"],
  102. options: {
  103. helpers:
  104. "test/browser/runner-rootpath-rewrite-urls-options.js",
  105. specs: "test/browser/runner-rootpath-rewrite-urls-spec.js",
  106. outfile:
  107. "tmp/browser/test-runner-rootpath-rewrite-urls.html"
  108. }
  109. },
  110. production: {
  111. src: ["test/browser/less/production/*.less"],
  112. options: {
  113. helpers: "test/browser/runner-production-options.js",
  114. specs: "test/browser/runner-production-spec.js",
  115. outfile: "tmp/browser/test-runner-production.html"
  116. }
  117. },
  118. modifyVars: {
  119. src: ["test/browser/less/modify-vars/*.less"],
  120. options: {
  121. helpers: "test/browser/runner-modify-vars-options.js",
  122. specs: "test/browser/runner-modify-vars-spec.js",
  123. outfile: "tmp/browser/test-runner-modify-vars.html"
  124. }
  125. },
  126. globalVars: {
  127. src: ["test/browser/less/global-vars/*.less"],
  128. options: {
  129. helpers: "test/browser/runner-global-vars-options.js",
  130. specs: "test/browser/runner-global-vars-spec.js",
  131. outfile: "tmp/browser/test-runner-global-vars.html"
  132. }
  133. },
  134. postProcessorPlugin: {
  135. src: ["test/less/postProcessorPlugin/*.less"],
  136. options: {
  137. helpers: [
  138. "test/plugins/postprocess/index.js",
  139. "test/browser/runner-postProcessorPlugin-options.js"
  140. ],
  141. specs: "test/browser/runner-postProcessorPlugin.js",
  142. outfile:
  143. "tmp/browser/test-runner-post-processor-plugin.html"
  144. }
  145. },
  146. preProcessorPlugin: {
  147. src: ["test/less/preProcessorPlugin/*.less"],
  148. options: {
  149. helpers: [
  150. "test/plugins/preprocess/index.js",
  151. "test/browser/runner-preProcessorPlugin-options.js"
  152. ],
  153. specs: "test/browser/runner-preProcessorPlugin.js",
  154. outfile: "tmp/browser/test-runner-pre-processor-plugin.html"
  155. }
  156. },
  157. visitorPlugin: {
  158. src: ["test/less/visitorPlugin/*.less"],
  159. options: {
  160. helpers: [
  161. "test/plugins/visitor/index.js",
  162. "test/browser/runner-VisitorPlugin-options.js"
  163. ],
  164. specs: "test/browser/runner-VisitorPlugin.js",
  165. outfile: "tmp/browser/test-runner-visitor-plugin.html"
  166. }
  167. },
  168. filemanagerPlugin: {
  169. src: ["test/less/filemanagerPlugin/*.less"],
  170. options: {
  171. helpers: [
  172. "test/plugins/filemanager/index.js",
  173. "test/browser/runner-filemanagerPlugin-options.js"
  174. ],
  175. specs: "test/browser/runner-filemanagerPlugin.js",
  176. outfile: "tmp/browser/test-runner-filemanager-plugin.html"
  177. }
  178. }
  179. }