Skip to content
This repository has been archived by the owner on Jan 18, 2019. It is now read-only.

Commit

Permalink
fix(karma): correct junit report folder config
Browse files Browse the repository at this point in the history
fix for #14
  • Loading branch information
hypery2k committed Nov 8, 2016
1 parent 2d719f0 commit 4697664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etc/appConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var appConfig = {
specs: '/**/*.spec.ts',
testBundle: path.resolve(__dirname, './spec-bundle.js'),
junit: {
name: 'Holisticon-AngularBuildCommon',
title: 'AngularCommon',
dir: 'dist/test-reports'
},
chunks: {
Expand Down
6 changes: 3 additions & 3 deletions etc/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const appConfig = helpers.getAppConfig();
const webpackConfig = require('./webpack.test.js');
webpackConfig.entry = {};

const title = appConfig.testTitle || 'Holisticon';
const JUNIT = appConfig.junit;
const specs = appConfig.testSpecs;
const bundle = appConfig.testBundle;

Expand Down Expand Up @@ -78,8 +78,8 @@ module.exports = function (config) {
* See https://github.com/karma-runner/karma-junit-reporter#configuration
*/
junitReporter: {
outputDir: 'target/test-reports', // results will be saved as $outputDir/$browserName.xml
outputFile: 'TESTS-' + title + '.xml', // if included, results will be saved as $outputDir/$browserName/$outputFile
outputDir: JUNIT.dir, // results will be saved as $outputDir/$browserName.xml
outputFile: 'TEST-' + JUNIT.title + '.xml', // if included, results will be saved as $outputDir/$browserName/$outputFile
suite: title, // suite will become the package name attribute in xml testsuite element
useBrowserName: false // add browser name to report and classes names
},
Expand Down

0 comments on commit 4697664

Please sign in to comment.