karma.conf.js 848 B

1234567891011121314151617181920212223242526272829
  1. module.exports = function (config) {
  2. var junitOutputDir = process.env.CIRCLE_TEST_REPORTS || "target/junit"
  3. config.set({
  4. browsers: ['ChromeHeadless'],
  5. basePath: 'target',
  6. files: ['karma-test.js'],
  7. frameworks: ['cljs-test'],
  8. plugins: [
  9. 'karma-cljs-test',
  10. 'karma-chrome-launcher',
  11. 'karma-junit-reporter'
  12. ],
  13. colors: true,
  14. logLevel: config.LOG_INFO,
  15. client: {
  16. args: ['shadow.test.karma.init'],
  17. singleRun: true
  18. },
  19. // the default configuration
  20. junitReporter: {
  21. outputDir: junitOutputDir + '/karma', // results will be saved as outputDir/browserName.xml
  22. outputFile: undefined, // if included, results will be saved as outputDir/browserName/outputFile
  23. suite: '' // suite will become the package name attribute in xml testsuite element
  24. }
  25. })
  26. }