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 !
To build from source:
git clone http://github.com/sdekock/AgUnit
git submodule update --init
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.
- 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.
- 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.
You will need the MSTest files included with the Silverlight toolkit.
NUnit tests can be run by using the nunit-silverlight project from your Silverlight test project.
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.
Jason Jarrett for providing us with StatLight:
My colleagues at Item Solutions for using and supporting AgUnit: