views:

188

answers:

2

Hi,

What is the best way to run silverlight unit tests automatically using team city?

I have found StatLight which we had working well when we used cc.net, and it says that it has support for teamcity. Does this just mean the test results output file is compatible with teamcity? Do I need to create a command line runner to run the tests? If so how do I get the test results into team city?

Thanks

+2  A: 

TeamCity has an extensibility feature where you can output special commands to the console and the TeamCity agent will capture the commands and publish the results within TeamCity.

If you get StatLight running on your desktop - do a regular console-run. Then do another run by giving it the "--teamcity" parameter. Notice the difference in the output?

In TeamCity you can setup a Command Line Build Runner

Command executable: "<Path to statlight.exe>"

Command parameters: "-x=%system.teamcity.build.checkoutDir%\PathToXap\SilverlightClient.Tests.xap --teamcity"

Hope this helps.

Jason Jarrett
Awesome. Thanks. That has made things clearer. I'll give this a go as soon as we get the build building again :)
Tom
A: 

Hi

I want to integrate stat light unit test result with Cruse control webdashboard. Please help me. Please send me the xsl for stat light test result if you have.

Thanks Rakitha.

Rakitha Karaputugala