To reproduce:
- Extract the attached VS solution
- 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()
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.