I am customizing the build process with TFS. I am integrating TIBCO build with ANT script and unit testing with JMeter. Using UpgradeTemplate and TFSBuild.proj file, I could build and unit test tibco app. Depend on unit testing result I want to pass/ fail the build. For this I have created custom Task, which reads Jmeter report, decides if it is passed or failed and returns out parameter.
I am not able to use this boolean parameter to set build status to pass/ fail. Any ideas around this? Is it possible to create custom section in build output where I can show unit test percentage like we do with WriteCustomSummaryInformation tool in template?
Also, I am confused with implementation. I see there are multiple ways to implement this 1. Like Chutzpah we can create custom Test Adapter which will also populate failed test details in build 2. Updating build template file (UpgradeTemplate.xaml), adding custom Activity to template and setting build status. 3. Using Custom Task which I am trying above.
1st approach looks much better but time consuming. How can we decide on which one is better way to implement this?
Thanks.