summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml3
-rw-r--r--config/karma.config.js10
2 files changed, 12 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a69757411f..91abe474c73 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -448,13 +448,16 @@ karma:
<<: *except-docs
variables:
BABEL_ENV: "coverage"
+ CHROME_LOG_FILE: "chrome_debug.log"
script:
- bundle exec rake karma
coverage: '/^Statements *: (\d+\.\d+%)/'
artifacts:
name: coverage-javascript
expire_in: 31d
+ when: always
paths:
+ - chrome_debug.log
- coverage-javascript/
coverage:
diff --git a/config/karma.config.js b/config/karma.config.js
index 8b2950b4496..cfb0a0cb101 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -21,7 +21,14 @@ module.exports = function(config) {
var karmaConfig = {
basePath: ROOT_PATH,
- browsers: ['ChromeHeadless'],
+ browsers: ['ChromeDebug'],
+ customLaunchers: {
+ ChromeDebug: {
+ base: 'ChromeHeadless',
+ flags: ['--enable-logging', '--v=1'],
+ displayName: 'Chrome'
+ }
+ },
frameworks: ['jasmine'],
files: [
{ pattern: 'spec/javascripts/test_bundle.js', watched: false },
@@ -33,6 +40,7 @@ module.exports = function(config) {
reporters: [progressReporter],
webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' },
+ logLevel: config.LOG_DEBUG,
};
if (process.env.BABEL_ENV === 'coverage' || process.env.NODE_ENV === 'coverage') {