vstest.console job succeeds when tests fail
Summary
Build is successful Test project runs and third test fails but job succeeds
Steps to reproduce
Create a C# unit test project. Create a unit test which executes Assert.Fail();
Create a DebugTest.bat
like this:
set MsTestExe="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\"vstest.console.exe
set TestContainer=.\bin\Debug\UnitTestNetTcpService.dll
set WorkingDirectory=%CD%
cd .\NetTcp\UnitTestNetTcpService
%MsTestExe% %TestContainer%
cd %WorkingDirectory%
Call it in the .gitlab-ci.yml as shown in screenshot
Actual behavior
Job passes
Expected behavior
Jon fails
Relevant logs and/or screenshots
Environment description
Using GitLab Enterprise Edition 11.1.2-ee Windows Server 2016 VS2017 C# .NET 4.6.1
Edited by Tomasz Maczukin