Project Description

AgUnit is a plugin for Jetbrains ReSharper (R#) that allows you to run and debug Silverlight unit tests from within Visual Studio.

AgUnit currently supports Silverlight 4, ReSharper 6.0, Visual Studio 2010 and the MSTest framework from the Silverlight toolkit, NUnit-Silverlight or xUnitContrib-Silverlight. (see below)

ReSharper 6 support is now available in AgUnit 0.4 !

The code is on GitHub at http://github.com/sdekock/AgUnit

To build from source:

    git clone http://github.com/sdekock/AgUnit
    cd AgUnit
    git submodule update --init
    start built.bat
Then copy the files from the "output" folder to a subfolder in the "Bin\Plugins" folder of your ReSharper installation.
For example: C:\Program Files (x86)\JetBrains\ReSharper\v6.0\Bin\Plugins\AgUnit\
Create these folders if they don't exist already.

FAQ

  • The plugin shows an error and fails to load!
Make sure Windows is not blocking any of the assemblies: for all the files (dll, pdb, xap, ...), open the file properties (right click in explorer > Properties) and click the "Unblock" button if present.
You can avoid this by using something like 7-zip instead of the built-in windows zip utility to extract AgUnit.
  • My tests don't run! / All my tests show up as ignored!
Something is going wrong inside the test runner. Feel free to start a discussion here on CodePlex and we will help you.
  • Why don't you support feature X / framework X / Visual Studio X / ReSharper X / ... ?
Let us know and we might consider it. Feel free to contribute.

MSTest support

You will need the MSTest files included with the Silverlight toolkit.
See http://silverlight.codeplex.com/.

NUnit support

NUnit tests can be run by using the nunit-silverlight project from your Silverlight test project.
See http://code.google.com/p/nunit-silverlight/.

XUnit support

XUnit tests can be run by using the xunitcontrib-silverlight project from your Silverlight test project.
You will also need to install the xunitcontrib-resharper plugin.
See http://xunitcontrib.codeplex.com/.

Thanks


Jason Jarrett for providing us with StatLight:

StatLight
(http://statlight.codeplex.com/)

My colleagues at Item Solutions for using and supporting AgUnit:

Item Solutions
(http://www.itemsolutions.com)

Last edited Aug 21, 2011 at 8:52 AM by SDeKock, version 66