[DevExpress Support Team: CLONED FROM T969017: Code Rush Test Runner fails to run tests from Universal Windows Test Project]
Thanks. I was trying a different approach, and received an error I thought might help. Basically, I was using xunit.runners.devices as documented here: https://xunit.net/docs/getting-started/uwp/devices-runner
After following their setup, I received the following error from DevExpress.CodeRush.TestRunner.WCF.TestRunnerClientBase.DiscoverTests. Hope it helps!
System.IO.FileNotFoundException: Could not load file or assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'
at System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount)
at System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.CustomAttributeData…ctor(RuntimeModule scope, CustomAttributeRecord caRecord)
at System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget)
at System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target)
at Xunit.Sdk.ReflectionAssemblyInfo.GetCustomAttributes(String assemblyQualifiedAttributeTypeName)
at Xunit.Sdk.XunitTestFrameworkDiscoverer…ctor(IAssemblyInfo assemblyInfo, ISourceInformationProvider sourceProvider, IMessageSink diagnosticMessageSink, IXunitTestCollectionFactory collectionFactory)
at Xunit.Sdk.XunitTestFramework.CreateDiscoverer(IAssemblyInfo assemblyInfo)
at Xunit.Sdk.TestFramework.GetDiscoverer(IAssemblyInfo assemblyInfo)
at Xunit.Xunit2Discoverer…ctor(AppDomainSupport appDomainSupport, ISourceInformationProvider sourceInformationProvider, IAssemblyInfo assemblyInfo, String assemblyFileName, String xunitExecutionAssemblyPath, String configFileName, Boolean shadowCopy, String shadowCopyFolder, IMessageSink diagnosticMessageSink, Boolean verifyAssembliesOnDisk)
at Xunit.XunitFrontController.CreateInnerController()
at Xunit.XunitFrontController.get_InnerController()
at Xunit.XunitFrontController.Find(Boolean includeSourceInformation, IMessageSink messageSink, ITestFrameworkDiscoveryOptions discoveryOptions)
at DevExpress.CodeRush.TestRunner.xUnit21.Executor.LoadTests()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Exception was thrown:
Type: System.IO.FileNotFoundException
Message: Could not load file or assembly 'System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
Stack trace:
at DevExpress.CodeRush.TestRunner.xUnit21.Executor.LoadTests()
at DevExpress.CodeRush.TestRunner.xUnit21.xUnitWCFServiceCallback.LoadTests(RequestBase request, Executor& executor)
at DevExpress.CodeRush.TestRunner.xUnit21.xUnitWCFServiceCallback.DiscoverTestsInternal(TestDiscoveryRequest request)
at DevExpress.CodeRush.TestRunner.WCF.TestRunnerClientBase.DiscoverTests(TestDiscoveryRequest request)
Hi Eric,
I reproduced this issue locally. The fix is complex, and we need more time. We will notify you once the fix is ready.