Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 days ago
JSON representation

Module that enables soft assertions in qavajs framework

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'
```