codeceptjs / codeceptjs/CodeceptJS

Add support for gherkin contexts

Open
#2,815 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.2k
Forks
757
Avg merge
2d 9h
Merged PRs (30d)
16

Description

#### What are you trying to achieve?

I would like to organize files with steps by context, similar to [codeception](https://codeception.com/docs/07-BDD#Configuration):
```js
"gherkin": {
"features": "./features/*.feature",
"contexts": {
"default": ["./step_definitions/steps.js"],
"tag": {
"fastlogin": ["./step_definitions/fastlogin.js"]
},
"role": {
"admin": ["./step_definitions/admin.js"]
}
}
}
```

#### What do you get instead?

This functionality could probably be simulated using events.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.