2
0

karma.conf.js 761 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright 2018 Scytl Secure Electronic Voting SA
  3. *
  4. * All rights reserved
  5. *
  6. * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package
  7. */
  8. module.exports = function(config) {
  9. 'use strict';
  10. config.set({
  11. basePath: '.',
  12. singleRun: true,
  13. browserNoActivityTimeout: 60 * 60 * 1000,
  14. files: ['spec/**/*.js'],
  15. frameworks: ['jasmine'],
  16. browsers: ['PhantomJS'],
  17. preprocessors:
  18. {'lib/**/*.js': ['coverage', 'webpack'], 'spec/**/*.js': ['webpack']},
  19. junitReporter: {
  20. useBrowserName: false,
  21. outputDir: 'target/reports/junit',
  22. outputFile: 'TESTS-xunit.xml'
  23. },
  24. coverageReporter:
  25. {type: 'lcov', dir: 'target/reports', subdir: 'coverage'}
  26. });
  27. };