forked from opencloud-eu/web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcucumber.mjs
More file actions
25 lines (22 loc) · 782 Bytes
/
cucumber.mjs
File metadata and controls
25 lines (22 loc) · 782 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
25
import path from 'path'
import fs from 'fs'
import { config } from './tests/e2e/config.js'
if (!fs.existsSync(config.reportDir)) {
fs.mkdirSync(path.join(config.reportDir, 'cucumber'), { recursive: true })
}
const e2e = `
--loader ts-node/esm
--import ./tests/e2e/**/*.ts
--retry ${config.retry}
--format @cucumber/pretty-formatter
--format pretty
--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')}
--format-options ${JSON.stringify({
snippetInterface: 'async-await',
snippetSyntax: './tests/e2e/cucumber/environment/snippets-syntax.mjs'
})}
`
export { e2e }
export default {}