Bug Report T974893
Visible to All Users

Test Runner fails to run tests for the xUnit framework from the Universal Windows Test Project

created 4 years ago (modified 4 years ago)

[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)

Comments (1)
DevExpress Support Team 4 years ago

    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.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.