Commit 14a0b38
authored
Refactored cucumber setup to allow for multiple step definition files (#601)
no refs
Miscellaneous refactorings to allow us to move to using multiple step definition
files instead of one large file:
- Introduced `support` directory to organize support files
- Moved generic helper functions out of `stepdefs.js` and into their
respective support files
- Removed nearly all global state from `stepdefs.js`
- Support files keep track of there global state (i.e `db.js` keeping track
of database client instance)
- Added `block_steps.js` to organize block related step definitions
- Moved global static constants to environment variables
I opted to just use the built in `World` rather than a custom one - We could
maybe move to this at a later point and use it to keep track of global state etc1 parent d454801 commit 14a0b38
File tree
11 files changed
+788
-791
lines changed- features
- step_definitions
- support
11 files changed
+788
-791
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments