Hi
I'm building under TFS2008 and am trying to integrate test results from MSTest. I build the solution file into a single output folder, then I use a fileset iterator to detect my test assemblies and put the assembly path into a variable. Under the iterator I have an MSTest task to run the tests in each assembly (only the test container is specified, publish results set to auto).
This works fine when running on my desktop and I see the tests being run. However, when I run it under Team Build I do not see the results published in the build report ("Test Results" under "Result details for Any CPU/FinalBuilder" reads "No test result").
Any clues to how I can get this working would be appreciated.
Thanks
Sean
Hi Sean,
Would you be able to send in the complete output from these actions when you run your project through Team Build? Also, could you see whether specifying the settings to use when publishing the results fixes the issue?
Regards,
Paul
Hi Paul
I tried specifying the settings manually (to the obvious candiates!). Attached is the TFS build log, hope that helps.
Cheers
Sean
001_BuildLog.zip (149.446 KB)
Hi Sean,
Thanks for sending in the build log, it looks like the build was not finding any assemblies to test, here’s the output from where I’m assuming the tests should be run:
[ File/Fileset Iterator [ c:\dev08\buildoutput\test.*.dll ] ]
Searching for Files…
Found 0 Files.
Could you confirm that the iterator has been set to the correct location when being run under TFS?
Regards,
Paul.
Hi Paul
D’oh - my problem entirely…I had a fixed local path in the file iterator that wasn’t finding anything on the server. Works like a dream now.
Thanks for your help with this.
Regards
Sean
Hi Sean,
Thanks for letting us know.
Regards,
Paul.