The auto build completes (when ‘Disable Tests’ is set to true in build definition) but when I enable tests the build doesn’t complete.
I’m building as Debug/AnyCpu. I’ve copy-and-pasted the MSTest line and ran it in a shell on the build server and I got some assertion fails. Thus, I think the server’s waiting for a response to ignore/retry these assertions, does anyone know how I can fix this?
The auto build completes (when ‘Disable Tests’ is set to true in build definition)
Share
If you want to using assertions during your unit testing, I would recommend using the Unit Test Framework Assert class instead of Debug.Assert.
See this method for more details:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assert.fail.aspx
You have different ways to assert (AreEqual, AreNotEqual, IsTrue, etc.).
Hope this helps.