question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DevOps / VSTest adapter is throwing due to RemotingException

See original GitHub issue

Using 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:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
robertcoltheartcommented, Apr 20, 2020

Released as v2.10.1-beta.2, please try again 😃

0reactions
mikeblakeukcommented, Apr 20, 2020

@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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found