[英]See Cucumber Html reporters in Jenkins when Execute Protractor test
I woud like to see the Cucumber Html reporter in Jenkins before I executed my protractor test but i dont know how to access to them: I woud like to see the Cucumber Html reporter in Jenkins before I executed my protractor test but i dont know how to access to them:
This is my cucumberconfig.ts:这是我的 cucumberconfig.ts:
import { Config } from 'protractor';
import * as reporter from "cucumber-html-reporter";
import { truncate } from 'fs/promises';
export let config: Config = {
directConnect: true,
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['--disable-dev-shm-usage', '--no-sandbox', '--headless', '--disable-web-security','--allow-insecure-localhost', '--ignore-urlfetcher-cert-requests' ]
shardTestFiles: true,
maxInstances: 10
},
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
"types": ["chai", "cucumber", "node"],
specs: ['../../../e2e/src/features/programs.feature'],
cucumberOpts: {
format:'json:./e2e/report/output/cucumber_report.json',
require: ['src/stepDefinitions/*.js']
},
onComplete: () =>{
var reporter = require('cucumber-html-reporter');
var options = {
theme: 'bootstrap',
jsonFile: './e2e/report',
output: './e2e/report',
reportSuiteAsScenarios: true,
launchReport: true,
};
reporter.generate(options);
},
plugins: [{
package: 'protractor-multiple-cucumber-html-reporter-plugin',
options:{
automaticallyGenerateReport: true,
removeExistingJsonReportFile: true,
}
}]
}
And in jenkins i can see the next when the tests are finished:在 jenkins 中,测试完成后我可以看到下一个:
=====================================================================================
Multiple Cucumber HTML report generated in:
/usr/src/app/e2e/report/output/report/index.html
=====================================================================================
but i can't access to them.但我无法访问它们。 Can anyone help me?
谁能帮我? Thank you in advance.
先感谢您。
I could see that they are in the workspace of jenkins.我可以看到它们在 jenkins 的工作区中。 Thank you !
谢谢 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.