Screw.Unit tests not displaying properly in IE

The Screw.Unit JavaScript BDD framework is awesome, I love it.  Unfortunately if you grab the current head from github, it comes down with jQuery 1.2.6.  Using 1.2.6 with Screw.Unit and trying to run your tests in IE will result in something like this:

image

when it should look like this:

image

Simply upgrade from jQuery 1.2.6 to 1.4.1 and the problem will go away:

image


Posted by: Jeff
Posted on: 2/19/2010 at 8:07 PM
Categories: jQuery | Testing
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (6) | Post RSSRSS comment feed

Running tests from Visual Studio 2010 Beta 2, TestDriven.Net 3, and xUnit.net returns a FileLoadException

UPDATE: This issue is now resolved in TestDriven.NET 3.0.2556 (http://testdriven.net/download.aspx). Thanks to Jaime Cansdale (@jcansdale) for fixing this issue so quickly.

When you try to run TestDriven.NET 3 in Visual Studio 2010 Beta 2 with xUnit.net, you might get the following exception:

------ Test started: Assembly: Mylibrary.Tests.dll ------

=== ERROR IN TEST RUNNER: xUnit.net 1.5 build 1479 ===
System.IO.FileLoadException: Could not load file or assembly 'file:///c:\users\jeff\documents\visual studio 2010\Projects\MyLibrary\Mylibrary.Tests\3rdParty\xunit\xunit.runner.tdnet.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///c:\users\jeff\documents\visual studio 2010\Projects\MyLibrary\Mylibrary.Tests\3rdParty\xunit\xunit.runner.tdnet.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

=================================================
It looks like you're trying to execute an xUnit.net unit test.

For xUnit 1.5 or above (recommended):
Please ensure that the directory containing your 'xunit.dll' reference also contains xUnit's
test runner files ('xunit.dll.tdnet', 'xunit.runner.tdnet.dll' etc.)

For earlier versions:
You need to install support for TestDriven.Net using xUnit's 'xunit.installer.exe' application.

You can find xUnit.net downloads and support here:
http://www.codeplex.com/xunit

To clear this issue up, you'll need to unblock the xunit reference dll's in the folder from which you're referenced them:

(do this for xunit.dll, xunit.dll.tdnet, and xunit.runner.tdnet.dll)

xunit.dll

Afterwards, you'll be able to successfully use TD.net again without this error. (I did not have the same issue with NUnit 2.4 however)


Posted by: Jeff
Posted on: 11/1/2009 at 11:21 PM
Categories: Testing | VS2010
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (17) | Post RSSRSS comment feed