Silverlight Unit Test Automation Using StatLight and TeamCity

What is the best way to automatically test Silverlight tests using a city team?

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

thanks

+4
source share
3 answers

TeamCity has an extensibility function in which you can output special commands to the console, and the TeamCity agent will capture commands and publish the results to TeamCity.

If you run StatLight on your desktop, run the regular console. Then run another run with the -teamcity parameter. Pay attention to the difference in output?

In TeamCity, you can customize Run Line Build Runner

Executable file: "<Path to statlight.exe>"

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

Hope this helps.

+4
source

There is also a StatLight TeamCity plugin that adds a test runner.

+1
source

You can try using the Lighthouse Silverlight Unit Test Runner, it works with every build server, including TeamCity and CCNet, because by default it creates an xml result file compatible with NUnit:

http://lighthouse.codeplex.com/

0
source

Source: https://habr.com/ru/post/1304979/


All Articles