Protoractor를 통해 테스트 보고서 표시
3718 단어 jasmineProtractorJava
Protoractor를 통해 테스트 보고서 표시
의 목적
Protoractor를 통해 테스트를 수행할 때 터미널에 보고서를 표시하려고 합니다.
설정 방법
사용jasmine-spec-reporter.$ npm i jasmine-spec-reporter -D
conf.js에 설정을 기술합니다.
conf.jsvar SpecReporter = require('jasmine-spec-reporter');
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [
'*_spec.js'
],
framework: 'jasmine2',
multiCapabilities: [
{
'browserName': 'chrome',
'chromeOptions': {
'args': ['incognito']
}
}
],
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 3000,
isVerbose: true
},
onPrepare: function() {
/* 追記 ここから */
var reporter = new SpecReporter({
displayStacktrace: true
});
jasmine.getEnv().addReporter(reporter);
/* 追記 ここまで */
}
};
이렇게 하면 보고를 더욱 보기 쉽다.
References
Reference
이 문제에 관하여(Protoractor를 통해 테스트 보고서 표시), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/naoiwata/items/74a0758c198771e741fa
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
$ npm i jasmine-spec-reporter -D
var SpecReporter = require('jasmine-spec-reporter');
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [
'*_spec.js'
],
framework: 'jasmine2',
multiCapabilities: [
{
'browserName': 'chrome',
'chromeOptions': {
'args': ['incognito']
}
}
],
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 3000,
isVerbose: true
},
onPrepare: function() {
/* 追記 ここから */
var reporter = new SpecReporter({
displayStacktrace: true
});
jasmine.getEnv().addReporter(reporter);
/* 追記 ここまで */
}
};
Reference
이 문제에 관하여(Protoractor를 통해 테스트 보고서 표시), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/naoiwata/items/74a0758c198771e741fa텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)