TFS Build Quality Update for Unit Tests

I am trying to update assembly build quality while passing unit tests. I figured out how to update build quality with instructions like this ...

<Target Name="AfterEndToEndIteration">
<SetBuildProperties
  TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
  BuildUri="$(BuildUri)"
  Quality="Unit Test Passed" />

But I don't seem to be able to single out the target when the module tests SUCCESSFULLY pass.

+3
source share
1 answer

You should be able to use the TestStatus property to make the target condition according to the Aaron Hallberg blog entry: http://blogs.msdn.com/aaronhallberg/archive/2008/05/12/orcas-sp1-tfs-build-changes -part-2.aspx

<Target Name="AfterEndToEndIteration" Condition="'$(TestStatus)'=='Succeeded'">
  ...
</Target>
+3
source

Source: https://habr.com/ru/post/1708469/


All Articles