Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit fa88b84

Browse files
author
Oleksandr_Halichenko
committed
introduced new approach to perform soft assertions
1 parent 19fea60 commit fa88b84

File tree

11 files changed

+4146
-10999
lines changed

11 files changed

+4146
-10999
lines changed

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@v3
1616
- uses: actions/setup-node@v3
1717
with:
18-
node-version: 16
18+
node-version: 22
1919
registry-url: https://registry.npmjs.org/
2020
- run: npm ci
2121
- run: npm run build

.github/workflows/pull-request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v3
1414
with:
15-
node-version: 16
15+
node-version: 22
1616
- run: npm ci
1717
- run: npm run build
18-
- run: npm run test

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [0.3.0]
2+
- introduced new approach to perform soft assertions
3+
14
## [0.2.0]
25
- updated dependencies
36
- added e2e tests

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,28 @@ Soft assertions for qavajs frameworks
66

77
## Usage
88

9-
Add module to requireModule and set activation tag (default is _@softAssert_).
10-
Soft assertion change behavior of CucumberJS and _Then_ steps will not cause test case failure.
9+
Add module to requireModule.
1110
```javascript
1211
module.exports = {
1312
default: {
1413
requireModule: [
15-
'@qavajs/soft-assertion'
16-
],
17-
softAssertTag: '@softAssert'
14+
'@qavajs/soft-assertion/index.js'
15+
]
1816
}
1917
}
2018
```
2119

20+
Now you can use `softly` prefix before expect.
2221
```gherkin
2322
Feature: Feature
2423
25-
@softAssert
2624
Scenario: verify soft assert
2725
# first step fails but other steps will not be skipped
28-
Then I expect '2' to equal '1'
26+
Then I softly expect '2' to equal '1'
2927
# pass
3028
And I expect '1' to equal '1'
3129
# fail
3230
And I expect '2' to equal '1'
33-
# pass
31+
# skip
3432
And I expect '1' to equal '1'
3533
```

0 commit comments

Comments
 (0)