2
0

karma.conf.js 881 B

123456789101112131415161718192021222324252627282930
  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: [
  15. 'node_modules/node-forge/dist/forge.min.js', 'node_modules/sjcl/sjcl.js',
  16. 'lib/cryptolib.js', 'lib/*.js', 'spec/*.js'
  17. ],
  18. frameworks: ['jasmine'],
  19. browsers: ['PhantomJS'],
  20. preprocessors: {'lib/*.js': ['coverage']},
  21. reporters: ['progress', 'junit', 'coverage'],
  22. junitReporter: {
  23. useBrowserName: false,
  24. outputDir: 'target/reports/junit',
  25. outputFile: 'TESTS-xunit.xml'
  26. },
  27. coverageReporter:
  28. {type: 'lcov', dir: 'target/reports', subdir: 'coverage'}
  29. });
  30. };