I have a simple build process in TFS 2017 using CI/CD demo as described in https://msdn.microsoft.com/en-us/powershell/dsc/dsccicd
The Build definition contains four steps:
- Run powershell script. As a part of the script, Pester tests are run on agent and results are saved to a folder using NUnit format
- Publish Test results using from that folder
- Copy files to staging directory
- Publish Artifacts
When Pester test fails , I would like entire build to fail. At the moment build succeeds even when Published Test results show as failed ( In Issues section of Build Details). I don't see how can I force entire build to fail looking at the Build definition parameters.