codeceptjs / codeceptjs/CodeceptJS

BDD one step per feature (filtering steps per feature)

オープン
#1,761 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

#### What are you trying to achieve?

I would like to create multiples step files for my BDD. One step file per feature. It's more organized for me but if i have the same steps in different feature files I cant have two step files with the same steps. i would like to filter the steps by feature file

#### What do you get instead?

ex:
```feature
Feature: My first feature

Scenario: My first scenario
Give first given
When first when
Then first then

Scenario: My second scenario
Give first given
When second when
Then second then
```
```feature
Feature: My second feature

Scenario: My third scenario
Give first given
When second when
Then third then
```

filtering feature and scenario

```js
Feature('My first feature', () => {
Scenario('My first scenario',() => {
Give('first given')
When('first when')
Then('first then')
})
Scenario('My second scenario',() => {
Give('first given')
When('second when')
Then('second then')
})
})

Feature('My second feature', () => {
Scenario('My first scenario',() => {
Give('first given')
When('second when')
Then('third then')
})
})
```

or filtering feature only

```js
Feature('My first feature', () => {
Give('first given')
When('first when')
When('second when')
Then('first then')
Then('second then')
})

Feature('My second feature', () => {
Give('first given')
When('second when')
Then('third then')
})
```

or as is at now

```js
Give('first given')
When('first when')
When('second when')
Then('first then')
Then('second then')
Then('third then')
```

It's possible?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。