标签: python batch-file pytest
请考虑以下批处理脚本:
call <somepath>/py.test.exe <someotherpath>/tests if %errorlevel%==0 ( echo Tests successful. ) else ( echo Tests failed. )
但是,即使pytest测试失败,我也会得到Tests successful。发生了什么事?
pytest
Tests successful