Please consider the following batch script:
call <somepath>/py.test.exe <someotherpath>/tests
if %errorlevel%==0 (
echo Tests successful.
) else (
echo Tests failed.
)
However, even when pytest
tests fail, I get Tests successful
. What's going on?