0
特拉維斯CI建立我的角應用程序和所有測試測試版本是沒有完成的傳球:特拉維斯CI:後全成測試
Chrome 59.0.3071 (Linux 0.0.0): Executed 0 of 5 SUCCESS (0 secs/0 secs)
e 59.0.3071 (Linux 0.0.0): Executed 1 of 5 SUCCESS (0 secs/0.137 secs)
e 59.0.3071 (Linux 0.0.0): Executed 2 of 5 SUCCESS (0 secs/0.178 secs)
'0 - {"isTrusted":true}'
Chrome 59.0.3071 (Linux 0.0.0): Executed 2 of 5 SUCCESS (0 secs/0.178 secs)
ERROR: '0 - {"isTrusted":true}'
TypeError{}
Chrome 59.0.3071 (Linux 0.0.0): Executed 2 of 5 SUCCESS (0 secs/0.178 secs)
LOG: TypeError{}
e 59.0.3071 (Linux 0.0.0): Executed 3 of 5 SUCCESS (0 secs/0.391 secs)
'0 - {"isTrusted":true}'
Chrome 59.0.3071 (Linux 0.0.0): Executed 3 of 5 SUCCESS (0 secs/0.391 secs)
ERROR: '0 - {"isTrusted":true}'
TypeError{}
Chrome 59.0.3071 (Linux 0.0.0): Executed 3 of 5 SUCCESS (0 secs/0.391 secs)
LOG: TypeError{}
e 59.0.3071 (Linux 0.0.0): Executed 4 of 5 SUCCESS (0 secs/0.512 secs)
e 59.0.3071 (Linux 0.0.0): Executed 5 of 5 SUCCESS (0 secs/0.538 secs)
e 59.0.3071 (Linux 0.0.0): Executed 5 of 5 SUCCESS (0.556 secs/0.538 secs)
後所有的測試都通過了,構建仍在運行,並在10分鐘內由於不活動而造成失敗。
"No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
The build has been terminated"
我karma.conf:
// Karma configuration file, see link for more information
// https://karma-runner.github.io/0.13/config/configuration-file.html
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 // leave Jasmine Spec Runner output visible in browser
},
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'],
singleRun: true // tried false aswell
});
};
任何想法,我缺少的是什麼?有沒有辦法將測試版本標記爲完整?
當'autoWatch'爲false時,配置項不測試文件(並且劇照超時)。我嘗試了CircleCI,並且沒有使用autowatch,並且它通過了。 – TheUnreal