Tom
Tom

Reputation: 623

Automating silverlight unit tests using StatLight and TeamCity

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

Upvotes: 4

Views: 1152

Answers (3)

jrummell
jrummell

Reputation: 43077

There's also a StatLight TeamCity plugin that adds a test runner.

Upvotes: 1

Roboblob
Roboblob

Reputation: 1795

You can try using Lighthouse Silverlight Unit Test Runner, it works with every Build Server including TeamCity and CCNet because it by default produces NUnit compatible xml results file:

http://lighthouse.codeplex.com/

Upvotes: 0

Jason Jarrett
Jason Jarrett

Reputation: 3987

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.

Upvotes: 4

Related Questions