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 3/4/5, ReSharper 8.0, Visual Studio 2010/2012/2013 and the MSTest framework from the Silverlight toolkit, NUnit-Silverlight or xUnitContrib-Silverlight. (see below)

ReSharper 8 & Visual Studio 2010/2012/2013 support is now available in AgUnit 0.8 !

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 build.vs2012.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\v8.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 unblocking the AgUnit .zip file before extracting it or by using a tool like 7-zip.
  • 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 or GitHub 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 Nov 3, 2013 at 9:43 PM by SDeKock, version 96