History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-52993
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Ilya Ryzhenkov
Reporter: Albert Weinert
Votes: 2
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
ReSharper

Can't Unit Test x86 Assemblies under Vista 64bit

Created: 16 Nov 07 12:23   Updated: 10 Apr 08 17:48
Component/s: Unit Testing
Fix Version/s: Aroha
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 560


 Description  « Hide
using the R# NUnit Runner under Vista 64bit and targeting the Test Assembly for Plattform = x86 (the normal logic Assemblies are targeted for Any CPU) i can't run the Tests.

The reason why i use only an x86 Test Assembly is NCover, cause with NCover 1.x it's only possible to Test 32Bit Assemblies. But i don't want to target the Application x86. TD.NET, NCover and NUnit itself are running these test without problems.

It's not an 560 Issue, is was also an 553 (and maybee before) Issue.

System.BadImageFormatException: Die Datei oder Assembly Jjk.WebBeilagen.Presenters.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden.
bei System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, ref StackCrawlMark stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
bei System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, ref StackCrawlMark stackMark, Boolean forIntrospection)
bei System.Reflection.Assembly.Load(AssemblyName assemblyRef)
bei JetBrains.ReSharper.UnitTestProvider.nUnit.NUnitTaskRunner.GetFixtureType(NUnitTestFixtureTask fixture, IRemoteTaskServer server) in c:\A\work\Server\be08dc054b0f1225\src\UnitTestProvider.nUnit\src\NUnitTaskRunner.cs: line 372.
bei JetBrains.ReSharper.UnitTestProvider.nUnit.NUnitTaskRunner.Start(IRemoteTaskServer server, TaskExecutionNode node, NUnitTestFixtureTask fixture) in c:\A\work\Server\be08dc054b0f1225\src\UnitTestProvider.nUnit\src\NUnitTaskRunner.cs: line 249.
bei JetBrains.ReSharper.TaskRunnerFramework.CurrentAppDomainHost.Execute(TaskExecutionNode node) in c:\A\work\Server\be08dc054b0f1225\src\TaskRunnerFramework\src\Impl\CurrentAppDomainHost.cs: line 89.



 All   Comments   Work Log   Change History      Sort Order:
Gabriel Schenker - 03 Mar 08 12:33
Another scenario: I develope on a Vista 64bit and am using NHibernate as ORM tool. The database is access and the dirver for access ONLY supports 32bit. So I have to choose x86 as build target.

Andrew Marshall - 10 Apr 08 17:48
We also have a scenario in which we need to test x86 targeted code in an x64 environment. I assume the problem arises because the R# test runner runs as a separate 64 bit process, and 64 bit processes cannot host 32 bit assemblies.