client-ui
Version:
Testing implementation of nodeJs Backend, angular frontend, and hopefully in a way that this can be deployed to s3/cloudfront
47 lines (37 loc) • 1.22 kB
JavaScript
var settings = require('./gulpSettings');
var files = settings.bundles.js.app;
for (var file in files) {
files[file] = files[file].replace('generated/public/', '');
files[file] = files[file].replace('generated/lib/', '../lib/');
}
module.exports = function(config) {
config.set({
// frameworks to use
frameworks: ['mocha', 'chai', 'sinon'],
// list of files / patterns to load in the browser
files: files.concat([
'../lib/angular-mocks/angular-mocks.js',
'**/*.html',
'../../tests/unit/**/*.js'
]),
basePath: 'generated/public/',
// test results reporter to use
reporters: ['progress','junit'],
junitReporter: {
outputFile: '../../junitresults.xml',
suite: ''
},
// start these browsers
browsers: ['PhantomJS'],
plugins: [
'karma-mocha',
'karma-chai',
'karma-sinon',
'karma-phantomjs-launcher',
'karma-junit-reporter'
],
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true
});
};