Silverlight Unit Test Adapter


Test adapter for Visual Studio 2012 to integrate Silverlight Unit Tests, based on the Silverlight Unit Test project type from the Silverlight Toolkit, available using the native Test Explorer in Visual Studio 2012

(3) Review
Visual Studio
Download (3,861)
E-mail Twitter Digg Facebook
Add to favorites
Reviews (3)
Q and A (8)
Sign in to write a review
Sort by:

by dzmitry.lahoda | January 27 2015

I and other person were unable to run tests

If you fix this(or find root cause) and make this tool open source I will donate some USD to this project for 2012. While migrating to 2013 and available here either - other some USD.

by Daniel Svensson | January 02 2013

Looks promising but it can take some effort to make it work.

Missing features:
* make output from statlight visible in the output tab, this would be great for troubleshooting
* make it possible to call statlight with "-x" (.xap file) parameter instead of the "-d" (dll-file) parameter: statlight worked fine with the -x paramter for us, but not with -d which is the way this plugin calls statlight. After much troubleshooting we found out that a 3rd party dll had a reference to a odata-dll (this was never an issue to us as the reference and associated functionality is never used so it works perfectly fine, except that it prevented us from using this plugin.

* It would be good if one could run tests without recompiling everything, I don't know if it is Visual Studio or the Silverlight Unit Test Adapter which trigger rebuild even when nothing has changes since the last time.

by perlun | October 09 2012

Quite nice! I had to gacutil -i the required assemblies in C:\Program Files (x86)\Microsoft SDKs\Silverlight\v5.0\Toolkit\dec11\Testing, but after that is seems to be working.

However, I cannot debug any tests. Neither by doing "debug test" or "debug all tests", which feels like quite a limitation... :)

niels.hebling October 09 2012
| Edit |

debugging is currently not supported, as it would be to time consuming to support the different browsers etc. Currently I did not investigate in it as there are some other leftovers. Just take a look at the limitations list on the description tab.
"- "Debug Selected Test" option from Test Explorer is and cannot be supported. Technical limitation."

Sign in to start a discussion

  • How do I uninstall it?
    2 Posts | Last post May 23, 2014
    • How do I uninstall it?
    • add remove programs.
      This tool didn't work for me, and upset my tfs build server with some cryptic message 
      An exception occurred while invoking executor 'executor://statlighttestadapter/v1': VSShellManager.Shell is null. Could not initialize Shell reference
      Parameter name: Shell
      even on projects not in Silverlight.
      Thankfully uninstalling it, fixed it.
  • Could not find test executor
    2 Posts | Last post December 18, 2013
    • received following message Test output and not able to run tests although its discovered in Test window.
      Could not find test executor with URI 'executor://statlighttestadapter/v1'.  Make sure that the test executor is installed and supports .net runtime version 4.0.30319.34003.
      please suggest solution..
    • I have the same problem. Looks like that with references to Portable Libs that reference something like System.Xml.Serilization or System.ComponentModel.DataAnotation get this problem.
      Check if you have any complits in the output window.
      This is very difficult to resolve because there isn't many information in the output windows about what's going on. The plugin just don't find the tests or don't run the test and don't say why.
      if you find more news on this, please reply.
      best regards
      Paulo Aboim Pinto
      Odivelas - Portugal
  • VS 2013 support
    1 Posts | Last post November 08, 2013
    • Please update the installer to add support for visual studio 2013.
  • How do I uninstall
    1 Posts | Last post November 07, 2013
    • Hi, I could never get it working so could you please let me know how can I remove it? Haris
  • Waiting all task to complete"
    1 Posts | Last post September 09, 2013
    • Hi,İ run a test but output screen says "Waiting all task to complete".and it does not complete never,how i can fix it?
  • Failure when discovering tests
    2 Posts | Last post September 09, 2013
    • Hi! I'm trying to use the adapter to run some SL unit test from VS2012 Update 1. The test project is Silverlight 5 Unit Test Application that uses Microsoft.Silverlight.Testing and Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight (both version). The project compiles fine, I can run test from IE, but Test Explorer doesn't discover any tests and VS Tests output window reports an error:
      An exception occurred while test discoverer 'TestDiscoverer' was loading tests. Exception: VSShellMananger.OutputWindowPanel is null. Reference not found.
      Parameter name: OutputWindowPanel
      Also, when I open Extensions and Updates window, Silverlight Unit Test Adapter does not appear as being installed. However, when I find it in the Gallery and download MSI, it reports that the software is already installed (I get modify/repair/uninstall options). VS is installed in the default location (C:\Program Files (x86)\Microsoft Visual Studio 11.0).
      Do you have any idea what's going wrong? Thanks for your help!
    • Hi,İ run a test but output screen says "Waiting all task to complete".and it does not complete never,how i can fix it?
  • FileNotFound Exception
    1 Posts | Last post January 21, 2013
    • Is the proxy loader expecting the Microsoft.Silverlight.Testing assembly in a specific folder - I'm getting FileNotFoundException
  • Will there be support for Silverlight 2, 3 or 4?
    4 Posts | Last post December 18, 2012
    • - Silverlight 4 support is planned, but currently I'm focusing on getting Silverlight 5 up and running.
      - Silverlight 2 or 3 will NOT be supported
    • Hi Niels. How are things coming along with SL4? Still planning to support it? Thanks.
    • Hi,
      I'm currently a little bit busy, but I would say 90% finished with the SL4 support (except tests ;-(). In second december week I should find some time.
      Sorry, to keep you waiting.
      If your project is publicly available I could use it for tests - and would save some time ;-)
    • Hi,
      If you still Need Silverlight 4 Support, I could provide you a preview Version as this would also give me some Feedback if everything works as expected. Just write a mail to my <MSDNusername> then I can send you a preview.