Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kobenguyent
Copy link
Collaborator

Motivation/Description of the PR

  • Soft assert

Zero-configuration when paired with other helpers like REST, Playwright:

// inside codecept.conf.js
{
  helpers: {
    Playwright: {...},
    SoftExpectHelper: {},
  }
}
// in scenario
I.softExpectEqual('a', 'b')
I.flushSoftAssertions() // Throws an error if any soft assertions have failed. The error message contains all the accumulated failures.

Type of change

  • 🚀 New functionality

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

@kobenguyent kobenguyent merged commit fe17657 into 3.x Sep 4, 2024
12 of 14 checks passed
@kobenguyent kobenguyent deleted the soft-assert branch September 4, 2024 13:57
@kobenguyent kobenguyent mentioned this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant