karma.FindDesigner.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_FindDesigner/test/*.spec.js', included: true, nocache: true, watched: true},
  23. {pattern:'x_component_FindDesigner/**/*.*', included: false, nocache: true, watched: true}
  24. ],
  25. proxies: {
  26. "/": "/base/"
  27. },
  28. exclude: [
  29. ],
  30. // preprocessors: {
  31. // },
  32. // reporters: ["coverage"],
  33. // preprocessors: {
  34. // "**/*.js": "coverage"
  35. // },
  36. port: 9876,
  37. colors: true,
  38. logLevel: config.LOG_INFO,
  39. autoWatch: true,
  40. browsers: ['Chrome'],
  41. singleRun: false,
  42. concurrency: Infinity
  43. });
  44. };