Bug Report T355996
Visible to All Users

Cannot run tests with coverage on the "Machine.VSTestAdapter.Specs" project

created 9 years ago (modified 9 years ago)

To reproduce:

  1. Extract the attached VS solution
  2. Run tests with coverage for "Machine.VSTestAdapter.Specs" project

Observe: Only a tiny subset of tests(7 out of 40) run and an error is shown.

Error in test output:

Failed: The test runner process has been unexpectedly closed. It is possible when an unhandled exception (like StackOverflowException, MemoryOverflowException, etc.) was thrown.

Error in "AppData\Roaming\CodeRush\Logs\Package 2016-03-13 01.59.28.log":

Error: Message: Could not find file 'C:\code\machine.vstestadapter\Source\Machine.VSTestAdapter.VSIX\bin\Debug\Machine.VSTestAdapter.VSIX.dll'.
Error: Type: System.IO.FileNotFoundException
Error: Source: mscorlib
Error: StackTrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at DevExpress.CodeRush.Metadata.MetadataExt.OpenStream(String path, Boolean useMemoryStream)
   at DevExpress.CodeRush.Metadata.Resolving.PEStream.PathToStream()
   at DevExpress.CodeRush.Metadata.Resolving.PEStreamWrapper.PathToStream()
   at DevExpress.CodeRush.Metadata.Resolving.PEStreamWrapper.get_Stream()
   at DevExpress.CodeRush.Metadata.Resolving.PEStreamWrapper.set_Position(Int64 value)
   at DevExpress.CodeRush.Metadata.Resolving.PEStream.get_PEReader()
   at DevExpress.CodeRush.Metadata.AssemblyItem.get_HasMetadata()
   at DevExpress.CodeRush.Metadata.Resolving.AssemblyInfo.UpdateFromAssemblyItem()
   at DevExpress.CodeRush.Metadata.Resolving.AssemblyInfo…ctor(IAssemblyItem item)
   at DevExpress.CodeRush.Metadata.Resolving.DefaultAssemblyResolver.CreateAssemblyInfo(IAssemblyItem assembly)
   at DevExpress.CodeRush.Metadata.Resolving.AssemblyResolver.AddToScope(IAssemblyItem assembly)
   at DevExpress.CodeRush.ContinuousTesting.Core.MethodInfoSearcher.GetMethodInfos(String path, String assemblyName)
   at DevExpress.CodeRush.ContinuousTesting.Core.MethodInfoSearcher.DiscoverMethods(IAssembly assembly, String path)
   at DevExpress.CodeRush.ContinuousTesting.Core.ContinuousTestingService.DiscoverMethodsInProject(IAssembly assembly, String path)
   at DevExpress.CodeRush.ContinuousTesting.Core.ContinuousTestingService.<>c__DisplayClass45_0.<DiscoverMethods>b__0()

Comments (1)
DevExpress Support Team 9 years ago

    Hello Ivan,
    Thank you for pointing out this issue.
    I have managed to reproduce it in the "machine.vstestadapter" project and passed this ticket to our developers for fixing.
    We will notify you when we make any progress.

    Answers approved by DevExpress Support

    created 9 years ago

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      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.