Commit 413f7d31 authored by Mike Greiling's avatar Mike Greiling

force chrome to produce debug output as it runs in CI

parent 86a2d9bf
...@@ -448,13 +448,16 @@ karma: ...@@ -448,13 +448,16 @@ karma:
<<: *except-docs <<: *except-docs
variables: variables:
BABEL_ENV: "coverage" BABEL_ENV: "coverage"
CHROME_LOG_FILE: "chrome_debug.log"
script: script:
- bundle exec rake karma - bundle exec rake karma
coverage: '/^Statements *: (\d+\.\d+%)/' coverage: '/^Statements *: (\d+\.\d+%)/'
artifacts: artifacts:
name: coverage-javascript name: coverage-javascript
expire_in: 31d expire_in: 31d
when: always
paths: paths:
- chrome_debug.log
- coverage-javascript/ - coverage-javascript/
coverage: coverage:
......
...@@ -21,7 +21,14 @@ module.exports = function(config) { ...@@ -21,7 +21,14 @@ module.exports = function(config) {
var karmaConfig = { var karmaConfig = {
basePath: ROOT_PATH, basePath: ROOT_PATH,
browsers: ['ChromeHeadless'], browsers: ['ChromeDebug'],
customLaunchers: {
ChromeDebug: {
base: 'ChromeHeadless',
flags: ['--enable-logging', '--v=1'],
displayName: 'Chrome'
}
},
frameworks: ['jasmine'], frameworks: ['jasmine'],
files: [ files: [
{ pattern: 'spec/javascripts/test_bundle.js', watched: false }, { pattern: 'spec/javascripts/test_bundle.js', watched: false },
...@@ -33,6 +40,7 @@ module.exports = function(config) { ...@@ -33,6 +40,7 @@ module.exports = function(config) {
reporters: [progressReporter], reporters: [progressReporter],
webpack: webpackConfig, webpack: webpackConfig,
webpackMiddleware: { stats: 'errors-only' }, webpackMiddleware: { stats: 'errors-only' },
logLevel: config.LOG_DEBUG,
}; };
if (process.env.BABEL_ENV === 'coverage' || process.env.NODE_ENV === 'coverage') { if (process.env.BABEL_ENV === 'coverage' || process.env.NODE_ENV === 'coverage') {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment