I am running our selenium based UnitTests on the WebUI thrue a different mechanism than the resular build steps in TFS 2015 (Update 1). Doing so generates a .trx file that I am trying to upload back into TFS so that the results are available in the build overview.
The build step running the UnitTests can fail the build if any of the tests fail, but then I would not have any test results visible in TFS. I can skip the failure by checking 'continue on error' in the step.
Next I can include a step 'Publish Test Results' that will pickup the generated trx file and results will be visible in the build.
But know the build doesn't fail!
Any idea's how to fail the build and have the testresults available?
I've checked:
- vstest.console.exe (cannot publish testresults from a file)
- MSTest (Enterprise/Premium license needed, we have MSDN Professional).
There has to be a better way. In my opinion, the build step 'Publish Test Results' should be able to check the file and fail the build?