How to let IO tests pass when the exit code is nonzero
IO tests fail by default if the exit code of the program is not 0. Sometimes, however, you want IO tests to also pass with another exit code than 0. You can simply fix this by appending
|| true
to your command, this will make sure the exit code is always 0.Last modified 1yr ago