How to automate Silverlight module tests in Hudson?

I would like to run Silverlight automated test cases from the Hudson build server. There seem to be two options:

  • Use Statlight , although it seems to be designed for TeamCity and not for Hudson, so this will require a bit of a hack to work.
  • Use the NUnit Silverlight tests .

Can any of these options be recommended? Or is there a better alternative?

+4
source share
2 answers

You can try using the Lighthouse Silverlight Unit Test Runner, it works with every build server, including Hudson, TeamCity and CCNet, since it creates a default Nml compatible xml result file:

http://lighthouse.codeplex.com/

+3
source

In our company, we use NUnit with Hudson for automated unit testing. It is easy to configure and execute.

Just download and unzip the latest nunit somewhere on the Hudson host.

Add a Windows command command as the last buildstep with content like:

C:\NUnit\bin\net-2.0\nunit-console.exe "%WORKSPACE%\src\Test\AllTests.nunit" /config=Release /xml="%WORKSPACE%\src\Test\TestResults.xml" 

This will run the tests defined in the "AllTests.nunit" file. You can point tu to only one assembly (.dll).

To fill out the test results on the Hudson Job page, you need to install the Hudson NUnit plugin. This is possible directly from the Hudson plugin management.

After installation, a new Post build action will appear: Publish a report on the results of the NUnit test. If you check it, you have a line to enter the path for the report on the test results. The corresponding path, for example, is given above:

 src/Test/TestResults.xml 

Hope this helps you decide; -)

+1
source

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


All Articles