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 5, ReSharper 7.1, Visual Studio 2012 and the MSTest framework from the Silverlight toolkit, NUnit-Silverlight or xUnitContrib-Silverlight. (see below)
ReSharper 7.1 & Visual Studio 2012 support is now available in
AgUnit 0.7 !
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 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.
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: