forked from owncloud/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcucumber.js
More file actions
24 lines (22 loc) · 789 Bytes
/
cucumber.js
File metadata and controls
24 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const path = require('path')
const { config } = require('./tests/e2e/config')
const fs = require('fs')
if (!fs.existsSync(config.reportDir)) {
fs.mkdirSync(path.join(config.reportDir, 'cucumber'), { recursive: true })
}
module.exports = {
e2e: `
--require ./tests/e2e/**/*.ts
--retry ${config.retry}
--require-module ts-node/register
--format @cucumber/pretty-formatter
--format json:${path.join(config.reportDir, 'cucumber', 'report.json')}
--format message:${path.join(config.reportDir, 'cucumber', 'report.ndjson')}
--format html:${path.join(config.reportDir, 'cucumber', 'report.html')}
--publish-quiet
--format-options ${JSON.stringify({
snippetInterface: 'async-await',
snippetSyntax: './tests/e2e/cucumber/environment/snippets-syntax.js'
})}
`
}