Calendar

<<  août 2008  >>
lumamejevesadi
28293031123
45678910
111214151617
181920222324
25262728293031
1234567

View posts in large calendar
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

(novembre 7, 2007 22:31)

Tonight I was working to see how it was possible to wrap the MsTest execution to avoid returning an error code when a test is inconclusive.

In fact the "problem" comes from the DLL "Microsoft.VisualStudio.QualityTools.Common" from the path "c:\program files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies".

This DLL defines an enum TestOutcome and a method TestOutcomeHelper.IsFail

How to overcome this? The simplest way is probably to detail more your MsTest command line to see this outcome result (which is stored in the .TRX file) to be able to analyse it.

To do that, here is typically what you could use :

  mstest /testcontainer:myTestLibrary.dll /detail:outcometext

What is this detail switch used for ? Simply to extract automatically some values from the TRX file. And I have found this link tonight on the MSDN that give a first list of the possible properties : http://msdn2.microsoft.com/en-GB/library/ms182489(VS.80).aspx#detail

Billets liés

Ajouter un commentaire


 

  Country flag





Live preview

août 28. 2008 17:28

Powered by BlogEngine.NET 1.2.0.0 | Theme by Pierre-Emmanuel Dautreppe