How do I create a condition based on published test results within a TFS 2012 build template? -
i'd create utilize of "team foundation server build extensions powerfulness tool" import junit test results tfs within custom build template designed run maven build through tfs.
the importing part works fine, overall build status not set correctly: if tests fail, ends in "succeeded" , not in "partially succeeded". seems shortcoming of powerfulness tools.
a possible workaround set build status (the teststatus in particular) in explicit activity. i'd based on status activity checks if of imported tests have failed.
however, seems not easy do, , i'd avoid creating custom activity purpose.
can give me hints on how formulate status in tfs 2012 build template checks if of imported tests have failed?
the status look looking is:
builddetail.buildserver.teamprojectcollection.getservice(of microsoft.teamfoundation.testmanagement.client.itestmanagementservice).getteamproject(builddetail.teamproject).testruns.bybuild(builddetail.uri).selectmany(function(tr) tr.queryresults()).where(function(tcr) tcr.outcome = microsoft.teamfoundation.testmanagement.client.testoutcome.failed).any()
visual-studio-2012 tfs
No comments:
Post a Comment