karma.conf.js 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. module.exports = function(config) {
  2. config.set({
  3. // base path, that will be used to resolve files and exclude
  4. basePath: '',
  5. // frameworks to use
  6. frameworks: [ 'jasmine' ],
  7. // list of files / patterns to load in the browser
  8. files: [
  9. // dependencies for main lib
  10. 'node_modules/moment/moment.js',
  11. 'node_modules/jquery/dist/jquery.js',
  12. 'node_modules/components-jqueryui/jquery-ui.js',
  13. 'node_modules/components-jqueryui/themes/cupertino/jquery-ui.css',
  14. // main lib files
  15. 'dist/fullcalendar.js',
  16. 'dist/fullcalendar.css',
  17. 'dist/gcal.js',
  18. 'dist/locale-all.js',
  19. // For testing if scheduler's JS, even when not actived, screws anything up
  20. //'../fullcalendar-scheduler/dist/scheduler.js',
  21. //'../fullcalendar-scheduler/dist/scheduler.css',
  22. // dependencies for tests
  23. 'node_modules/native-promise-only/lib/npo.src.js',
  24. 'node_modules/jquery-mockjax/dist/jquery.mockjax.js',
  25. 'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
  26. 'node_modules/jasmine-fixture/dist/jasmine-fixture.js',
  27. 'node_modules/jquery-simulate/jquery.simulate.js',
  28. 'tests/lib/jasmine-ext.js',
  29. 'tests/lib/simulate.js',
  30. 'tests/lib/dom-utils.js',
  31. 'tests/lib/dnd-resize-utils.js',
  32. 'tests/lib/time-grid.js',
  33. 'tests/base.css',
  34. 'tests/automated/*.js',
  35. // serve misc files, but don't watch
  36. {
  37. included: false, // don't immediately execute
  38. nocache: true, // don't let the webserver cache
  39. watched: false, // don't let changes trigger tests to restart
  40. pattern: '{' + [
  41. 'dist', // for sourcemap files
  42. 'src', // for files referenced by sourcemaps
  43. 'node_modules' // 3rd party lib dependencies, like jquery-ui theme images
  44. ].join(',') + '}/**/*'
  45. }
  46. ],
  47. // list of files to exclude
  48. exclude: [],
  49. // test results reporter to use
  50. // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
  51. reporters: [ 'dots' ],
  52. // web server port
  53. port: 9876,
  54. // enable / disable colors in the output (reporters and logs)
  55. colors: true,
  56. // level of logging
  57. // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  58. logLevel: config.LOG_INFO,
  59. // enable / disable watching file and executing tests whenever any file changes
  60. autoWatch: true,
  61. // If browser does not capture in given timeout [ms], kill it
  62. captureTimeout: 60000,
  63. // force a window size for PhantomJS, because it's usually unreasonably small, resulting in offset problems
  64. customLaunchers: {
  65. PhantomJS_custom: {
  66. base: 'PhantomJS',
  67. options: {
  68. viewportSize: {
  69. width: 1024,
  70. height: 768
  71. }
  72. }
  73. }
  74. }
  75. });
  76. };