TFS Manual Mstest Publish Results?

Posted by ScSub on Stack Overflow See other posts from Stack Overflow or by ScSub
Published on 2009-11-20T07:19:05Z Indexed on 2010/03/24 5:43 UTC
Read the original article Hit count: 1167

Filed under:
|
|
|

Following a MSDN web page, I am trying to manually run mstest within my tfsbuild.proj and put the results into the pass/fail logic so the build will fail if this particular test fails. It's kind of like running a FxCop or something else from CMD and capturing a "0" or "1" and force-fail the build.

MSTest /testcontainer:test.dll /publish:http://ourtfsmachine:8080 /teamproject:ProjectName /publishbuild:BuildNumber01 /platform:AnyCpu /flavor:Release

I could understand running this inside an Exec task, butI don't know what the BuildNumber is, for example.

Help?

© Stack Overflow or respective owner

Related posts about tfs

Related posts about mstest