DevOps / VSTest adapter is throwing due to RemotingException
See original GitHub issueUsing version 1.0.0 with adapter 2.10 DevOps is crashing at random time with a large assembly
<PackageReference Include="Machine.Specifications" Version="1.0.0" />
<PackageReference Include="Machine.Specifications.Runner.VisualStudio" Version="2.10.0" />
<PackageReference Include="Machine.Specifications.Should" Version="1.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.5.0" />
Note; PackageReference Include=“Microsoft.Net.Compilers.Toolset” Version=“3.5.0” is being used
Could this be related to https://github.com/microsoft/testfx/issues/28 ?
Machine Specifications Visual Studio Test Adapter - Error while executing specifications in assembly - System.Runtime.Remoting.RemotingException: Object '/e7f91710_178b_45e5_9236_c1f0962c2b13/xezfw3bltbfv2avt9likjwow_6.rem' has been disconnected or does not exist at the server.
Server stack trace:
at System.Runtime.Remoting.Channels.ChannelServices.CheckDisconnectedOrCreateWellKnownObject(IMessage msg)
at System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(IMessage msg)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Machine.Specifications.Runner.ISpecificationRunListener.OnFatalError(ExceptionResult exception)
at Machine.Specifications.Runner.AggregateRunListener.<>c__DisplayClass10_0.<OnFatalError>b__0(ISpecificationRunListener listener)
at Machine.Specifications.Utility.RandomExtensionMethods.Each[T](IEnumerable`1 enumerable, Action`1 action)
at Machine.Specifications.Runner.AggregateRunListener.OnFatalError(ExceptionResult exception)
at Machine.Specifications.Runner.AggregateRunListener.<>c__DisplayClass10_0.<OnFatalError>b__0(ISpecificationRunListener listener)
at Machine.Specifications.Utility.RandomExtensionMethods.Each[T](IEnumerable`1 enumerable, Action`1 action)
at Machine.Specifications.Runner.AggregateRunListener.OnFatalError(ExceptionResult exception)
at Machine.Specifications.Runner.Impl.AssemblyRunner.OnAssemblyEnd(Assembly assembly)
at Machine.Specifications.Runner.Impl.DefaultRunner.EndRun(Assembly assembly)
at Machine.VSTestAdapter.Execution.TestExecutor.RunTestsInAssembly(String pathToAssembly, IEnumerable`1 specsToRun, ISpecificationRunListener specificationRunListener)
at Machine.VSTestAdapter.Execution.TestExecutor.RunTestsInAssembly(String pathToAssembly, IEnumerable`1 specsToRun, ISpecificationRunListener specificationRunListener)
at Machine.VSTestAdapter.Execution.SpecificationExecutor.RunAssemblySpecifications(String assemblyPath, IEnumerable`1 specifications, Settings settings, Uri adapterUri, IFrameworkHandle frameworkHandle)
at Machine.VSTestAdapter.MSpecTestAdapterExecutor.RunTests(IEnumerable`1 tests, IRunContext runContext, IFrameworkHandle frameworkHandle)
Machine Specifications Visual Studio Test Adapter - Executing Source Specifications Complete.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
VsTest task fails even when all tests passed · Issue #3473
We have a project where VsTest task consistently fails even when all tests passed ... It was a problem of the test adapter...
Read more >VsTest fails in Release Pipeline with Error - System.IO. ...
This is what was thrown when trying to run vsts.console.exe locally on the Test binaries for a build where I publish the Test...
Read more >Solving Long, flaky testing with Azure DevOps - Tsuyoshi Ushio
The reason is, private agent uses VsTest.Console.exe command. Command doesn't parse the Test Filter correctly. If you enable the batch, Azure ...
Read more >azure pipelines - NUnit Throws exceptions but still passes
I am running a new project with mstest with NUnit In Azure Devops pipeline. Locally No errors in output even when running it...
Read more >VSTest@2 - Visual Studio Test v2 task
Use this task to run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test (VSTest) runner.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released as
v2.10.1-beta.2
, please try again 😃@robertcoltheart It looks like it has fixed the issue but the logging has broken that beta build. https://github.com/machine/machine.specifications.runner.visualstudio/pull/98 We are currently using 2.10.1-pullrequest0098-11 in production, in DevOps, with Filters. 😃