Dom*_*omi 8 karma-runner karma-jasmine angular
当我有190次测试时,jenkins可以运行任何罚款,在191之后我得到以下错误:
Chrome 64.0.3282(Linux 0.0.0)错误{"message":"脚本错误.\nat:0:0","str":"脚本错误.\nat:0:0"}
有人能告诉我这是什么意思吗?
Karma版本(业力的输出 - 版本):2.0.0
你的karma.config.js文件的相关部分
module.exports = function (config)
{
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
],
client: {
clearContext: false
},
files: [
{ pattern: './src/test.ts', watched: false }
],
preprocessors: {
'./src/test.ts': ['@angular/cli'],
},
mime: {
'text/x-typescript': ['ts', 'tsx']
},
coverageIstanbulReporter: {
reports: ['html', 'lcovonly'],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},
```
reporters: config.angularCli && config.angularCli.codeCoverage
? ['progress', 'coverage-istanbul']
: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome_no_sandbox', 'Chrome'], customLaunchers: {
Chrome_no_sandbox: {
base: 'Chrome',
flags: ['--no-sandbox'] // for running within Docker
}
},
singleRun: false,
colors: true
});
};`
Run Code Online (Sandbox Code Playgroud)
Ale*_*yuv 11
使用--single-run=false
选项运行Karma ,这是默认选项,例如
karma start --single-run=false --config=test/unit/karma.conf.js
然后,打开http://localhost:9876/debug.html
并打开控制台.你会看到那里的实际问题.
归档时间: |
|
查看次数: |
1768 次 |
最近记录: |