1.1

Rating:        Based on 1 rating
Reviewed:  1 review
Downloads: 313
Change Set: 039f9d34ae77
Released: Aug 21, 2011
Updated: Aug 21, 2011 by richard_szalay
Dev status: Stable Help Icon

Recommended Download

Application 1.1 (Manual Installation)
application, 292K, uploaded Aug 21, 2011 - 313 downloads

Release Notes

Change Log

  • BREAKING CHANGE Test task name is now "Test" (was "RunUnitTests")
  • Windows Phone 7.1 (Mango) support
  • Fixed display bug for ExpectedException tests

Installation

Using NuGet, install "WP7-CI" to the Windows Phone Silverlight Application that is being used for unit tests (create one if you haven't already).

NOTE: The package will change the startup page to "TestsPage.xaml", but you can revert it to "MainPage.xaml" by editing Properties/WMAppManifest.xaml. You can then delete the TestsPage.xaml file.

Manual Installation

Don't have NuGet?
  1. Create a Windows Phone Silverlight Application for your tests if you haven't already
  2. Download the manual installation archive and extract it to a folder called "WP7-CI" under your application project folder.
  3. Add a reference to Microsoft.Silverlight.Testing.dll and Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll in lib/sl3-wp. Remove any references to previous versions of these assemblies.
  4. Manually edit your project file (csproj/vbproj) and place the following before the </Project> at the end of the file:

<Import Project="WP7-CI\tools\WP7CI.targets" />

Also, as is required by the standard testing framework, the following code should be placed in the Loaded event of your startup page:

var testPage = UnitTestSystem.CreateTestPage() as IMobileTestPage;

BackKeyPress += (x, xe) => xe.Cancel = testPage.NavigateBack();
(Application.Current.RootVisual as PhoneApplicationFrame).Content = testPage;     

Reviews for this release

     
I've been searching for a good testing solution for my WP7 projects, and this framework does simply everything I need. Great work!
by andrew_khmylov on Nov 15, 2011 at 10:43 AM