Skip to content

v2.1.0 — Highlight Test Failures in Requirements File

Compare
Choose a tag to compare
@daniel-hall daniel-hall released this 14 Apr 14:18
· 7 commits to main since this release
8135bff

This release adds a new feature which highlights the statement in a requirements file that failed. So if a test fails on the statement Given the user is logged in, clicking on the test failure will jump to that .feature file and highlight that line. This makes it easy to directly see which requirements and statements are broken or not implemented.

To turn this off and jump instead to the statement handling code that failed, then add this property to your test configuration class:

var shouldDisplayFailuresOnRequirement = false

  • This release also makes XCTest expectation-related methods available on the configuration class for using in statement handlers.