Skip to content
Snippets Groups Projects
Commit e92fe47d authored by Vincent Petry's avatar Vincent Petry
Browse files

Remove annoying karma 404 warnings for images

Karma now serves images from core to avoid polluting the logs with a lot
of 404 warnings.

This also makes it easier to read the test errors during development.
parent e401df26
Branches
No related tags found
Loading
......@@ -121,6 +121,9 @@ module.exports = function(config) {
files.push('apps/' + appsToTest[i] + '/tests/js/*.js');
}
// serve images to avoid warnings
files.push({pattern: 'core/img/**/*', watched: false, included: false, served: true});
config.set({
// base path, that will be used to resolve files and exclude
......@@ -137,6 +140,11 @@ module.exports = function(config) {
],
proxies: {
// prevent warnings for images
'/context.html//core/img/': 'http://localhost:9876/base/core/img/'
},
// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
reporters: ['dots', 'junit', 'coverage'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment