forked from RaghavendhraK/cucumber-html-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
23 lines (22 loc) · 784 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const report = require('./lib/index')
const opts = {
// source json
source: './testdata/big_error_and_screenshot.json',
// target directory (will create if not exists)
dest: './reports',
// report file name (will be index.html if not exists)
name: 'index.html',
// your custom mustache template (uses default if not specified)
// template: './custom_template.html',
// Title for default template. (default is Cucumber Report)
title: 'Test Report',
// Subtitle for default template. (default is empty)
component: 'Some Awesome Component',
// Path to the displayed logo.
logo: './logos/cucumber-logo.svg',
// Path to the directory of screenshots. Optional.
screenshots: './screenshots'
}
report.create(opts)
.then(console.log)
.catch(console.error)