You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. module.exports = function (config) {
  2. config.set({
  3. // base path, that will be used to resolve files and exclude
  4. basePath: '',
  5. frameworks: ['mocha', 'chai'],
  6. // list of files / patterns to load in the browser
  7. files: [
  8. 'node_modules/jquery/dist/jquery.js',
  9. 'jquery.barrating.js',
  10. 'test/*.js'
  11. ],
  12. // list of files to exclude
  13. exclude: [
  14. ],
  15. preprocessors: {
  16. },
  17. // possible values: 'progress', 'junit'
  18. // CLI --reporters progress
  19. reporters: ['progress', 'junit'],
  20. junitReporter: {
  21. outputDir: '',
  22. outputFile: 'test-results.xml'
  23. },
  24. // web server port
  25. // CLI --port 9876
  26. port: 9876,
  27. // enable / disable colors in the output (reporters and logs)
  28. // CLI --colors --no-colors
  29. colors: true,
  30. // level of logging
  31. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  32. // CLI --log-level debug
  33. logLevel: config.LOG_INFO,
  34. // enable / disable watching file and executing tests whenever any file changes
  35. // CLI --auto-watch --no-auto-watch
  36. autoWatch: true,
  37. // Start these browsers, currently available:
  38. // - Chrome
  39. // - ChromeCanary
  40. // - Firefox
  41. // - Opera
  42. // - Safari (only Mac)
  43. // - PhantomJS
  44. // - IE (only Windows)
  45. // CLI --browsers Chrome,Firefox,Safari
  46. browsers: ['PhantomJS'],
  47. // If browser does not capture in given timeout [ms], kill it
  48. // CLI --capture-timeout 5000
  49. captureTimeout: 20000,
  50. // Auto run tests on start (when browsers are captured) and exit
  51. // CLI --single-run --no-single-run
  52. singleRun: true,
  53. // report which specs are slower than 500ms
  54. // CLI --report-slower-than 500
  55. reportSlowerThan: 500
  56. })
  57. }