mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-24 08:51:48 -05:00
collect unit test results for shippable
Signed-off-by: Jake McDermott <jmcdermott@ansible.com>
This commit is contained in:
@@ -5,20 +5,13 @@ const NODE_MODULES = path.resolve(__dirname, '../../node_modules');
|
||||
|
||||
const webpackConfig = require('./webpack.spec');
|
||||
|
||||
module.exports = function(config) {
|
||||
module.exports = config => {
|
||||
config.set({
|
||||
autoWatch: true,
|
||||
colors: true,
|
||||
browsers: ['Chrome', 'Firefox'],
|
||||
coverageReporter: {
|
||||
reporters: [
|
||||
{ type: 'html', subdir: 'html' },
|
||||
]
|
||||
},
|
||||
frameworks: [
|
||||
'jasmine',
|
||||
],
|
||||
reporters: ['progress', 'coverage', 'junit'],
|
||||
frameworks: ['jasmine'],
|
||||
reporters: ['progress', 'junit'],
|
||||
files:[
|
||||
path.join(SRC_PATH, '**/*.html'),
|
||||
path.join(SRC_PATH, 'vendor.js'),
|
||||
@@ -37,8 +30,8 @@ module.exports = function(config) {
|
||||
noInfo: true
|
||||
},
|
||||
junitReporter: {
|
||||
outputDir: 'coverage',
|
||||
outputFile: 'ui-unit-test-results.xml',
|
||||
outputDir: 'reports',
|
||||
outputFile: 'results.spec.xml',
|
||||
useBrowserName: false
|
||||
}
|
||||
});
|
||||
|
||||
@@ -12,7 +12,7 @@ module.exports = config => {
|
||||
colors: true,
|
||||
frameworks: ['jasmine'],
|
||||
browsers: ['PhantomJS'],
|
||||
reporters: ['progress'],
|
||||
reporters: ['progress', 'junit'],
|
||||
files: [
|
||||
path.join(SRC_PATH, 'vendor.js'),
|
||||
path.join(SRC_PATH, 'app.js'),
|
||||
@@ -22,6 +22,7 @@ module.exports = config => {
|
||||
plugins: [
|
||||
'karma-webpack',
|
||||
'karma-jasmine',
|
||||
'karma-junit-reporter',
|
||||
'karma-phantomjs-launcher',
|
||||
'karma-html2js-preprocessor'
|
||||
],
|
||||
@@ -34,6 +35,11 @@ module.exports = config => {
|
||||
webpack: webpackConfig,
|
||||
webpackMiddleware: {
|
||||
noInfo: 'errors-only'
|
||||
},
|
||||
junitReporter: {
|
||||
outputDir: 'reports',
|
||||
outputFile: 'results.unit.xml',
|
||||
useBrowserName: false
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user