ng测试结束后如何删除显示的消息HeadlessChrome 78.0.3904(Linux 0.0.0):执行5之5成功(0.881秒/0.867秒)

时间:2019-12-04 07:52:49

标签: angularjs jasmine mocha

在角度进行ng测试后,如何删除显示的SUCCESS消息。 // Karma配置文件,请参阅链接以获取更多信息 // https://karma-runner.github.io/1.0/config/configuration-file.html

module.exports = function(config) {
  config.set({
    basePath: '',
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
    plugins: [
      require('karma-jasmine'),
      require('karma-chrome-launcher'),
      require('karma-jasmine-html-reporter'),
      require('karma-coverage-istanbul-reporter'),
      require('@angular-devkit/build-angular/plugins/karma')
    ],
    client: {
      clearContext: false,
      captureConsole: false
       // leave Jasmine Spec Runner output visible in browser

    },
    coverageIstanbulReporter: {
      dir: require('path').join(__dirname, 'coverage'), reports: ['html', 'lcovonly'],
      fixWebpackSourcePaths: true
    },

    reporters:
      config.angularCli && config.angularCli.codeCoverage
        ? ['progress', 'coverage-istanbul']
        : ['progress', 'kjhtml'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_DISABLE,
    autoWatch: true,
    browsers: ["ChromeHeadless"],
    singleRun: true
    });
};

这是我的karma.config.js文件。我需要删除此过程之后显示的错误消息以及测试后显示的成功消息。

HeadlessChrome 78.0.3904 (Linux 0.0.0): Executed 5 of 5 SUCCESS (0.881 secs / 0.867 secs)

如果我使用firefoxheadless和chromeheadless也显示此消息

0 个答案:

没有答案