You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing: withMockedHome: Forward errors from function under test (#424)
* withMockedHome: Don't swallow errors
The code was silently swallowing errors coming from the function under
test, so errors in the tests did not surface as test failures.
This throws the error if the cleaning the bin directory doesn't fail
first.
* Update UseTests: Swallow unknown version errors
Now that the mock home directory isn't swallowing function errors, these
are resulting in test failures when they aren't actually intended.
In these cases, we use `#expect` to verify the version, but swallow any
errors returned by the swiftly invocation.
In all cases, these were the result of trying to switch to a toolchain
that didn't exist. This should emit an error message, but leave the
selected toolchain unchanged.
0 commit comments