The failure of the test methods for your project is not the 'Standard Error
'. It just a result report of the test methods for your project, and will not be written to the StandardError
stream. So, the failure does not affect the final status of the task run.
If you want the job fails when the tests fail, as a workaround, you can try to set up a script to check the test result, and write a 'Standard Error
' (e.g. Exit 1
) to the StandardError
stream if there is any test fails.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…