Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 22
- run: npm ci
- run: npm run build
- run: npm run test
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [0.3.0]
- introduced new approach to perform soft assertions

## [0.2.0]
- updated dependencies
- added e2e tests
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,28 @@ Soft assertions for qavajs frameworks

## Usage

Add module to requireModule and set activation tag (default is _@softAssert_).
Soft assertion change behavior of CucumberJS and _Then_ steps will not cause test case failure.
Add module to requireModule.
```javascript
module.exports = {
default: {
requireModule: [
'@qavajs/soft-assertion'
],
softAssertTag: '@softAssert'
'@qavajs/soft-assertion/index.js'
]
}
}
```

Now you can use `softly` prefix before expect.
```gherkin
Feature: Feature

@softAssert
Scenario: verify soft assert
# first step fails but other steps will not be skipped
Then I expect '2' to equal '1'
Then I softly expect '2' to equal '1'
# pass
And I expect '1' to equal '1'
# fail
And I expect '2' to equal '1'
# pass
# skip
And I expect '1' to equal '1'
```
Loading