karma.FindDesigner.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Karma configuration
  2. // Generated on Thu Dec 20 2018 15:16:19 GMT+0800 (中国标准时间)
  3. module.exports = function(config) {
  4. config.set({
  5. basePath: '../',
  6. frameworks: ['jasmine'],
  7. files: [
  8. {pattern:'o2_lib/mootools/mootools-1.6.0_all.js', included: true, nocache: true, watched: true},
  9. {pattern:'o2_core/o2.js', included: true, nocache: true, watched: true},
  10. {pattern:'x_desktop/js/base.js', included: true, nocache: true, watched: true},
  11. {pattern:'x_test/o2TestConfig.js', included: true, nocache: true, watched: true},
  12. {pattern:'x_test/o2TestLoader.js', included: true, nocache: true, watched: true},
  13. {pattern:'x_desktop/css/style.css', included: true, nocache: true, watched: true},
  14. {pattern:'x_desktop/css/mBoxNotice.css', included: true, nocache: true, watched: true},
  15. {pattern:'x_desktop/css/mBoxTooltip.css', included: true, nocache: true, watched: true},
  16. {pattern:'o2_core/**/*.*', included: false, nocache: true, watched: true},
  17. {pattern:'o2_lib/adapter/adapter.js', included: false, nocache: true, watched: true},
  18. {pattern:'x_desktop/**/*.*', included: false, nocache: true, watched: true},
  19. {pattern:'x_component_Common/**/*.*', included: false, nocache: true, watched: true},
  20. {pattern:'x_component_Template/**/*.*', included: false, nocache: true, watched: true},
  21. {pattern:'x_component_Homepage/**/*.*', included: false, nocache: true, watched: true},
  22. {pattern:'x_component_Selector/**/*.*', included: false, nocache: true, watched: true},
  23. {pattern:'x_component_FindDesigner/test/*.spec.js', included: true, nocache: true, watched: true},
  24. {pattern:'x_component_FindDesigner/**/*.*', included: false, nocache: true, watched: true}
  25. ],
  26. proxies: {
  27. "/": "/base/"
  28. },
  29. exclude: [
  30. ],
  31. // preprocessors: {
  32. // },
  33. // reporters: ["coverage"],
  34. // preprocessors: {
  35. // "**/*.js": "coverage"
  36. // },
  37. port: 9876,
  38. colors: true,
  39. logLevel: config.LOG_INFO,
  40. autoWatch: true,
  41. browsers: ['Chrome'],
  42. singleRun: false,
  43. concurrency: Infinity
  44. });
  45. };