c7d4caa609
This enables tests against the Chromium project for refstack's javascript components. Change-Id: Id2dfbee5c2c6e1e897933335b9cb4c18d2d7174a
48 lines
1.2 KiB
JavaScript
48 lines
1.2 KiB
JavaScript
module.exports = function (config) {
|
|
'use strict';
|
|
|
|
config.set({
|
|
|
|
basePath: '../',
|
|
|
|
files: [
|
|
// Angular libraries.
|
|
'app/assets/lib/angular/angular.js',
|
|
'app/assets/lib/angular-ui-router/release/angular-ui-router.js',
|
|
'app/assets/lib/angular-bootstrap/ui-bootstrap.min.js',
|
|
'app/assets/lib/angular-mocks/angular-mocks.js',
|
|
'app/assets/lib/angular-bootstrap/ui-bootstrap-tpls.min.js',
|
|
'app/assets/lib/angular-busy/dist/angular-busy.min.js',
|
|
|
|
// JS files.
|
|
'app/app.js',
|
|
'app/components/**/*.js',
|
|
'app/shared/*.js',
|
|
'app/shared/**/*.js',
|
|
'app/assets/js/*.js',
|
|
|
|
// Test Specs.
|
|
'tests/unit/*.js'
|
|
],
|
|
|
|
autoWatch: true,
|
|
|
|
frameworks: ['jasmine'],
|
|
|
|
browsers: ['Firefox', 'PhantomJS', 'Chrome'],
|
|
|
|
plugins: [
|
|
'karma-chrome-launcher',
|
|
'karma-firefox-launcher',
|
|
'karma-phantomjs-launcher',
|
|
'karma-jasmine'
|
|
],
|
|
|
|
junitReporter: {
|
|
outputFile: 'test_out/unit.xml',
|
|
suite: 'unit'
|
|
}
|
|
|
|
});
|
|
};
|