karma.conf.js 825 B

12345678910111213141516171819202122232425262728
  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. },
  18. // the default configuration
  19. junitReporter: {
  20. outputDir: junitOutputDir + '/karma', // results will be saved as outputDir/browserName.xml
  21. outputFile: undefined, // if included, results will be saved as outputDir/browserName/outputFile
  22. suite: '' // suite will become the package name attribute in xml testsuite element
  23. }
  24. })
  25. }