|
|
|
|
@ -33,6 +33,10 @@
|
|
|
|
|
* preprocessor, which is needed to be able to debug tests properly in a browser.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
if (!process.env.CHROMIUM_BIN) {
|
|
|
|
|
process.env.CHROMIUM_BIN = require('puppeteer').executablePath()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* jshint node: true */
|
|
|
|
|
module.exports = function(config) {
|
|
|
|
|
function findApps() {
|
|
|
|
|
@ -56,7 +60,6 @@ module.exports = function(config) {
|
|
|
|
|
'apps/files_sharing/js/dist/files_sharing_tab.js',
|
|
|
|
|
'apps/files_sharing/js/dist/files_sharing.js',
|
|
|
|
|
'apps/files_sharing/js/dist/main.js',
|
|
|
|
|
'apps/files_sharing/js/dist/sidebar.js',
|
|
|
|
|
'apps/files_sharing/js/files_drop.js',
|
|
|
|
|
'apps/files_sharing/js/public.js',
|
|
|
|
|
'apps/files_sharing/js/sharedfilelist.js',
|
|
|
|
|
@ -189,12 +192,6 @@ module.exports = function(config) {
|
|
|
|
|
included: false,
|
|
|
|
|
served: true
|
|
|
|
|
});
|
|
|
|
|
files.push({
|
|
|
|
|
pattern: 'core/css/images/*',
|
|
|
|
|
watched: false,
|
|
|
|
|
included: false,
|
|
|
|
|
served: true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// include core CSS
|
|
|
|
|
files.push({
|
|
|
|
|
@ -237,12 +234,22 @@ module.exports = function(config) {
|
|
|
|
|
'/base/tests/css/': 'http://localhost:9876/base/core/css/',
|
|
|
|
|
'/base/core/css/images/': 'http://localhost:9876/base/core/css/images/',
|
|
|
|
|
'/actions/': 'http://localhost:9876/base/core/img/actions/',
|
|
|
|
|
'/base/core/fonts/': 'http://localhost:9876/base/core/fonts/'
|
|
|
|
|
'/base/core/fonts/': 'http://localhost:9876/base/core/fonts/',
|
|
|
|
|
'/svg/': '../core/img/'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// test results reporter to use
|
|
|
|
|
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
|
|
|
|
|
reporters: ['dots', 'junit', 'coverage'],
|
|
|
|
|
reporters: ['spec'],
|
|
|
|
|
|
|
|
|
|
specReporter: {
|
|
|
|
|
maxLogLines: 5,
|
|
|
|
|
suppressErrorSummary: false,
|
|
|
|
|
suppressFailed: false,
|
|
|
|
|
suppressPassed: true,
|
|
|
|
|
suppressSkipped: true,
|
|
|
|
|
showSpecTiming: false,
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
junitReporter: {
|
|
|
|
|
outputFile: 'tests/autotest-results-js.xml'
|
|
|
|
|
@ -281,16 +288,8 @@ module.exports = function(config) {
|
|
|
|
|
// - PhantomJS
|
|
|
|
|
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
|
|
|
|
|
// use PhantomJS_debug for extra local debug
|
|
|
|
|
browsers: ['PhantomJS'],
|
|
|
|
|
|
|
|
|
|
plugins: [
|
|
|
|
|
'karma-phantomjs-launcher',
|
|
|
|
|
'karma-coverage',
|
|
|
|
|
'karma-jasmine',
|
|
|
|
|
'karma-jasmine-sinon',
|
|
|
|
|
'karma-viewport',
|
|
|
|
|
'karma-junit-reporter'
|
|
|
|
|
],
|
|
|
|
|
browsers: ['ChromiumHeadless'],
|
|
|
|
|
|
|
|
|
|
// you can define custom flags
|
|
|
|
|
customLaunchers: {
|
|
|
|
|
PhantomJS_debug: {
|
|
|
|
|
|