TD.NET으로 mspec 사양 테스트를 실행하려고 할 때이 예외가 발생했습니다.MSExpec은 ReSharper에서 잘 실행되지만 TD.NET은 예외를 throw합니다.
------ Test started: Assembly: DesignRightWeb.Specs.dll ------
Error: Runner failure: System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Machine.Specifications.Runner.RunOptions,Machine.Specifications, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null'.
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)
at Machine.Specifications.Runner.Impl.AppDomainRunner.CreateRunnerAndUnloadAppDomain(String runMethod, AppDomain appDomain, Assembly assembly, Object[] args) in d:\BuildAgent- 01\work\340c36596c29db8\Source\Machine.Specifications\Runner\Impl\AppDomainRunner.cs:line 81
Test 'T:DesignRightWeb.Specs.given_a_string_calculator' failed: Type is not resolved for member 'Machine.Specifications.Runner.RunOptions,Machine.Specifications, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null'.
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'Machine.Specifications.Runner.RunOptions,Machine.Specifications, Version=0.3.0.0, Culture=neutral, PublicKeyToken=null'.
at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityAttributes)
at Machine.Specifications.Runner.Impl.AppDomainRunner.CreateRunnerAndUnloadAppDomain(String runMethod, AppDomain appDomain, Assembly assembly, Object[] args)
at Machine.Specifications.Runner.Impl.AppDomainRunner.RunMember(Assembly assembly, MemberInfo member)
at Machine.Specifications.TDNetRunner.SpecificationRunner.RunMember(ITestListener testListener, Assembly assembly, MemberInfo member)
at TestDriven.TestRunner.AdaptorTestRunner.Run(ITestListener testListener, ITraceListener traceListener, String assemblyPath, String testPath)
at TestDriven.TestRunner.ThreadTestRunner.Runner.Run()
0 passed, 1 failed, 0 skipped, took 1.12 seconds (MSpec).
MSpec을 Github에서 곧바로 설치하려고 시도했으며 NuGet을 사용하여 설치했습니다. 그 후 -이 동일한 예외를받는 동안 - TD.NET을 제거하고 TD.NET을 다시 설치했습니다. 이 예외가 계속 발생합니다.
아이디어가 있으십니까? 생각? 솔루션?
TD.Net> = 2.24를 사용하는 경우 주자를 등록 할 필요가 없습니다. 프로젝트에서 참조하는'Machine.Specifications.dll' 옆에'Machine.Specifications.dll.tdnet'과'Machine.Specifications.TDNetRunner.dll'을 놓습니다. –