Skip to content

v2.4.1 – Support failing tests if there are focused tests

Compare
Choose a tag to compare
@haf haf released this 04 Jan 10:46
  • This release provides a runTestsWithArgs function which runs the passed tests and also overrides the passed ExpectoConfig with the command line parameters.
  • Expecto now accepts the command line argument --fail-on-focused-tests, which checks if focused tests exist. This parameter can be set in build scripts and allows CI servers to reject commits that accidentally included focused tests.

If someone has focused a test but not unfocused it before committing, you can now have the CI server go red! ;)