nov. 07

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

Commentaires

Ajouter un commentaire




biuquote
  • Commentaire
  • Aperçu immédiat
Loading