Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qavajs/soft-assertion
Module that enables soft assertions in qavajs framework
https://github.com/qavajs/soft-assertion
qa test-automation testing
Last synced: about 1 month ago
JSON representation
Module that enables soft assertions in qavajs framework
- Host: GitHub
- URL: https://github.com/qavajs/soft-assertion
- Owner: qavajs
- License: mit
- Created: 2022-08-23T05:00:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T09:07:36.000Z (12 months ago)
- Last Synced: 2024-10-13T14:45:28.599Z (2 months ago)
- Topics: qa, test-automation, testing
- Language: TypeScript
- Size: 221 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.MD
- License: LICENSE
Awesome Lists containing this project
README
# @qavajs/soft-assertion
Soft assertions for qavajs frameworks## Installation
`npm install @qavajs/soft-assertion`## 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.
```javascript
module.exports = {
default: {
requireModule: [
'@qavajs/soft-assertion'
],
softAssertTag: '@softAssert'
}
}
``````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'
# pass
And I expect '1' to equal '1'
# fail
And I expect '2' to equal '1'
# pass
And I expect '1' to equal '1'
```