2011-11-18 5 views
1

CodeLush로 VS2010을 통해 유닛 테스트를 실행할 수 있지만 Icarus Test Runner로 테스트를 실행하려고하면이 오류가 발생합니다.Gallio : 테스트를 탐색하는 동안 예외가 throw되었습니다. System.Reflection.ReflectionTypeLoadException

An exception was thrown while exploring tests. 
Location: C:\XXX\XXX.Server.Tests\bin\Release\XXX.Server.Tests.DLL 
Reference: XXXServer.Tests, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Details: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. 
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) 
at System.Reflection.Assembly.GetTypes() 
at Gallio.Common.Reflection.Impl.NativeAssemblyWrapper.GetTypes() 
at Gallio.Framework.Pattern.TestAssemblyPatternAttribute.PopulateChildrenImmediately(IPatternScope assemblyScope, IAssemblyInfo assembly) 
at Gallio.Framework.Pattern.TestAssemblyPatternAttribute.Consume(IPatternScope containingScope, ICodeElementInfo codeElement, Boolean skipChildren) 
at Gallio.Framework.Pattern.DefaultPatternEvaluator.Consume(IPatternScope containingScope, ICodeElementInfo codeElement, Boolean skipChildren, IPattern defaultPrimaryPattern) 

저는 프로젝트 참조를 위해 로컬 복사가 True로 설정되었습니다.

답변

1

테스트중인 프로젝트가 "x86"으로 설정되어있는 동안 테스트 프로젝트 플랫폼 대상이 "모든 CPU"로 설정된 64 비트 시스템에서 테스트가 실행되고있었습니다. 그래서 시스템은 같은 방식으로 테스트중인 프로젝트를로드하려고 할 때 오류를 일으킨 64로 테스트를로드하고있었습니다.

+0

나는 똑같은 문제를 겪고 있습니다. 어떻게 수정 했습니까? Gallio에게 32 비트로 테스트를로드하라고 말할 수 있습니까? – MaYaN