mercredi 7 octobre 2015

Build failure in Jenkins after failed test MSTest

In Jenkins I create a Visual studio project using MSBuild. After the build a execute a windows batch command that executes the tests en sets the output file.

Post build I publish the .trx test report file. This all works perfect, the only problem is that if a test fails the build fails. With other types of projects if a test fails the build only becomes unstable.

How can I do the same for my Visual studio project?

Below my batch command:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" /testcontainer:TestAppTests\bin\Debug\TestAppTests.dll /resultsfile:TestResults.trx

Aucun commentaire:

Enregistrer un commentaire