diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-04-11 15:25:40 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-04-11 15:25:40 +0200 |
commit | e92fe47d2af67f844584da2d9e802f77815d6aa4 (patch) | |
tree | 62c99666dda2fae4a93e2f9a181024786872f09b /tests/karma.config.js | |
parent | e401df26bcfabd5aeef5634cdf341145379defdb (diff) | |
download | nextcloud-server-e92fe47d2af67f844584da2d9e802f77815d6aa4.tar.gz nextcloud-server-e92fe47d2af67f844584da2d9e802f77815d6aa4.zip |
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.
Diffstat (limited to 'tests/karma.config.js')
-rw-r--r-- | tests/karma.config.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/karma.config.js b/tests/karma.config.js index ed9836ed4c3..338e3f868e9 100644 --- a/tests/karma.config.js +++ b/tests/karma.config.js @@ -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'], |