What is Lighthouse?
Lighthouse is open source project that provides you with tools to run Silverlight Unit Tests.
Currently it only supports running Silverlight Unit Tests from Command Line – this is useful when running Unit Tests on Continuous Build Integration Server (For example
In future we plan to add support for running tests from Windows Test Runner Application and from
Resharper plugin for Visual Studio 2010.
- Running Silverlight Unit Tests written with
Silverlight Unit Testing Framework directly from command line without the need of Visual Studio (it does not even need to be installed on the machine)
- Running Silverlight Unit Tests in XAP file
- Running Silverlight Unit Tests by specifying one or multiple Silverlight assemblies (*.dll files) – you can specify each of the assemblies or use wildcards
- Specifying by Filter Tag which Unit Tests to run
- Saving results of each Unit Tests Run in known
NUnit XML Unit Tests results file format that is recognizable by any popular Continuous Integration Build Server (CCNet, TeamCity etc)
- Fully configurable via command line parameters (see
Lighthouse Command Line Test Runner Documentation for more info)
- Sending log messages from your Silverlight Unit Tests to Lighthouse CMD Line Unit Test Runner
How it works?
When you specify XAP or specific Silverlight Assemblies Lighthouse analyzes them and behind the scenes creates new web page and modified Silverlight for controlled run of Unit Tests and then starts this application in separate browser instance and waits
for the results of all Unit Tests. After its finished results are saved in NUnit xml results format.
For more information see
How can I get started?
All you need to do is to crate a Silverlight assembly with some functionality and another assembly that contains Silverlight Unit Testing Framework Unit Tests for that functionality.
Then you can package them all in standard XAP file that runs the tests (see this
Introductory post by Jeff Wilcox on how to do that) or just specify the desired assemblies via parameters in Lighthouse command line.
Lighthouse Release History