Skip to content

Instantly share code, notes, and snippets.

@samlucax
Created August 6, 2020 04:49
Show Gist options
  • Save samlucax/268813502f3427e56cfb734a89431997 to your computer and use it in GitHub Desktop.
Save samlucax/268813502f3427e56cfb734a89431997 to your computer and use it in GitHub Desktop.
Código do reporter construído na Semana Agilizei 1.0 - Aula 04 - Relatórios
const reporter = require('cucumber-html-reporter')
const options = {
theme: 'bootstrap',
jsonDir: 'cypress/reports/cucumber-json',
output: 'cypress/reports/cucumber_report.html',
reportSuiteAsScenarios: true,
scenarioTimestamp: true,
launchReport: true,
metadata: {
"App Name":"Demo Automation",
"Test Environment": "STAGING",
"Browser": "Electron",
"Platform": "Windows 10",
"Executed": "Local"
}
};
reporter.generate(options)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment