提交 19cb1fcd 编写于 作者: W winniehell

Make Karma output look nicer for CI (!9165)

上级 b4c00ae4
---
title: Make Karma output look nicer for CI
merge_request: 9165
author: winniehell
......@@ -4,6 +4,7 @@ var ROOT_PATH = path.resolve(__dirname, '..');
// Karma configuration
module.exports = function(config) {
var progressReporter = process.env.CI ? 'mocha' : 'progress';
config.set({
basePath: ROOT_PATH,
browsers: ['PhantomJS'],
......@@ -15,7 +16,7 @@ module.exports = function(config) {
preprocessors: {
'spec/javascripts/**/*.js?(.es6)': ['webpack', 'sourcemap'],
},
reporters: ['progress', 'coverage-istanbul'],
reporters: [progressReporter, 'coverage-istanbul'],
coverageIstanbulReporter: {
reports: ['html', 'text-summary'],
dir: 'coverage-javascript/',
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册