Skip to content

Commit

Permalink
Ensure that when a projects installation fails it also fails the unit…
Browse files Browse the repository at this point in the history
… test (#540)

* Ensure that when a projects installation fails it also fails the unit test

* CHANGELOG
  • Loading branch information
srtfisher committed May 9, 2024
1 parent 5a48da1 commit 22e0d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Fixed

- Fixed issue with command jobs not working properly.
- Ensure that unit tests fail when a project's installation script fails.

## v1.0.7 - 2024-04-29

Expand Down
2 changes: 2 additions & 0 deletions src/mantle/testing/class-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,5 +500,7 @@ public static function handle_shutdown(): void {

static::error( '🚨 Error during test run:', 'Shutdown' );
static::code( $error );

exit( 1 );
}
}

0 comments on commit 22e0d5b

Please sign in to comment.