Hey there, I already know how to add lines in the build log file. But now I need to add information to the report that ends up on the project portal. I have read the SDK part about extending the Team Foundation Reporting Warehouse but I'm not sure this is what I'm looking for...
Any pointers
Thanks!!!

How to: Customize the build reports
RonFarley
Nevermind the last post!!! Dont know what I was doing wrong back then, it worked perfectly this time... Then again I had some problems with user rights in my previous installation...
Anyway I'll take a look and see what I can find...
Sean John2005
Alright... I have successfully connected to the web service, read the information, wrote some in... all is going well...
But now I need a way to push my code coverage data in... the only method that concerns CodeCoverage in the BuildStore web service is GetCodeCoverageForBuild which returns the information... But I can't find anything else...
The question is, how to I set it in the first place
ssdfsdfsdfsdfsdf
Thanks for the heads up... I'll look into this and report back what I find...
Oh and I want to take this oportunity to thank you personnally Nagaraju! Your blog has been of great help for me as I tried to experiment with TeamFoundation and especially the build server... Great stuff! Keep it up!!
Todd Kitta 2
Hmm... my question was not as clear as I thought. The thing I would like to do is to put data in the warehouse using the object model and create reports from them.
A little explanation of the situation would probably help: There are good chances that my company will buy TeamFoundationServer before we all migrate to Visual studio 2005, so I was wondering if I could use our current build server that I created with Nant, but instead of creating a build report in a file on a server I would like to push build results in the warehouse and create reports for it on a portal. That way we could use the server for work-item tracking, documentation library and get build reports before we migrate to VS 2005...
Is that clearer
Is that possible
Neftali Reyes
Hmm... from what I see it seems quite complicated to feed code coverage results coming from a third party software...
I've looked at the *.trx file and the data.coverage file and it looks quite hard to duplicate...
Artybartfast
Abraham Sultan
Max, glad to know that my blog is helpful. You should use ServiceSoap.PublishRun method defined 'PublishTestResultsBuildService.asmx' to publish test results. It takes build Uri, pointer to test results (.trx) file and run id.
Thanks.
Canada Beau
Sharique A.Farooqui
Maxim, you are correct that it is bit hard to hand generate this file. I've asked TSDT team to provide additional details here.
Thanks.
Ender Koroglu
Hmm... I dont know if I want to go that far-off...
Then again... how can I get access to the databases directly I tried to connect to the TfsBuild database using "Connect to database" from the Server Explorer but I can't seem to make it work...
Thanks!
aliali
thewopr
Unfortunately, we do not directly support publishing test or coverage data in any format other than our own. The PublishRun method that Nagaraju mentioned would work if you had the trx and coverage files in our format, but we don't officially support calling the PublishRun method programmatically even in that case. The only supported access is through the GUI or through mstest.
If you're willing to go off-road a fair bit, you could write the code coverage data to the RunCoverage and BuildCoverage tables in the TfsBuild database directly. As long as the format of the data is correct and there are corresponding rows in the TestRun table to maintain referential integrity, the warehouse data should be updated automatically from this point. Let me know if you want to pursue this route and I can help answer questions on how to enter data correctly in these tables and other limitations you might encounter.
vivekuniq
If you want to add information that's already in the warehouse to the report, then you can just edit the report to include that. For example, if you want to add the number of bugs found in a build (and your Bug work item type uses the Found In Build field), then add the Cumulative Count measure, sliced by Found In.Build. I believe you'll have to do some hand-authored MDX to add something like this to the report, though.
Juergen Bayer
Yes, it is possible. You will need to use TeamBuild web services. They have support for pushing build data of any type into TeamBuild opstore which would finally land into TFS warehouse.
Thanks.