I am using VSTS to run protractor e2e test cases. I have a npm custom task that run the tests and even if the test fails, vsts build doesn't fail.
How can I make the vsts build fail?
I am using VSTS to run protractor e2e test cases. I have a npm custom task that run the tests and even if the test fails, vsts build doesn't fail.
How can I make the vsts build fail?
You could try using Write-Error
in combination with an exit 1 to fail a task:
Write-Error ("Some error")
exit 1
Check the case below: