Skip to content

Commit bc8df92

Browse files
committed
e2e: add end-to-end test framework
Set up a Cucumber (TypeScript) test framework in the 'test/e2e' directory. This commit contains only the infrastructure needed to write and run the tests; the tests themselves will be added in future commits. Signed-off-by: Victoria Dye <[email protected]>
1 parent 3c0554e commit bc8df92

File tree

6 files changed

+1336
-1
lines changed

6 files changed

+1336
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/bin/
44
/_dist/
55
/_docs/
6+
node_modules/

.vscode/settings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
// File formatting
23
"[markdown]": {
34
"editor.detectIndentation": false,
45
"editor.insertSpaces": false,
@@ -35,5 +36,13 @@
3536
"prerm": "shellscript",
3637
"postinstall": "shellscript",
3738
"Makefile": "makefile"
38-
}
39+
},
40+
41+
// Cucumber settings
42+
"cucumber.features": [
43+
"test/e2e/features/**/*.feature",
44+
],
45+
"cucumber.glue": [
46+
"test/e2e/features/**/*.ts"
47+
],
3948
}

test/e2e/cucumber.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
default: {
3+
requireModule: ['ts-node/register'],
4+
require: ['features/**/*.ts'],
5+
publishQuiet: true,
6+
format: ['progress'],
7+
formatOptions: {
8+
snippetInterface: 'async-await'
9+
},
10+
}
11+
}

0 commit comments

Comments
 (0)