karma.backward.conf.js 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module.exports = function(karma) {
  2. karma.set({
  3. frameworks: [ 'mocha', 'expect', 'sinon', 'browserify' ],
  4. files: [
  5. //'vendor/external.js',
  6. 'test/backward/**/*.compat.js',
  7. { pattern: 'test/backward/locales/**/*.json', watched: true, included: false, served: true},
  8. ],
  9. proxies: {
  10. '/locales': 'http://localhost:9877/base/test/backward/locales'
  11. },
  12. reporters: [ 'spec' ],
  13. preprocessors: {
  14. 'test/backward/**/*.compat.js': [ 'browserify' ]
  15. },
  16. browsers: [ 'PhantomJS' ],
  17. port: 9877,
  18. //logLevel: 'LOG_DEBUG',
  19. //singleRun: true,
  20. //autoWatch: false,
  21. //
  22. // client: {
  23. // mocha: {
  24. // reporter: 'spec', // change Karma's debug.html to the mocha web reporter
  25. // ui: 'tdd'
  26. // }
  27. // },
  28. // browserify configuration
  29. browserify: {
  30. debug: true,
  31. transform: [ 'babelify'/*, 'brfs' */]
  32. }
  33. });
  34. };