Closed jozefizso closed 3 days ago
Hello, please collect diagnostic output for this. This looks more like issue with CefSharp than test platform itself. https://github.com/microsoft/vstest-docs/blob/main/docs/diagnose.md
Hi @jozefizso,
Are you still experiencing the issue? If so, could you please follow the steps mentioned above by @nohwnd?
I can reproduce the issue with NUnit and MSTest which would seem to indicate it's more of a problem on Test Platform side. I will keep this ticket here for now and will try to do more investigation.
I can see that in vstest we are trying to locate the dll next to the testhost (i am using dotnet test, so the testhost is in dotnet-sdk location).
In NUnit a child process (CefSharp.BrowserSubprocess.exe) is started and CefSharp dll is located based on that.
But if it worked just like this, I don't see how any tests with any adapter could work. Because adapters load assemblies from the current folder normally.
I've updated the project to latest and it fails with:
I don't think this was ever vstest fault, in both cases cefSharp was crashing, and to me it looks like it took the testhost process with it.
Steps to reproduce
CefSharp.OffScreen
packageChromiumWebBrowser
objectvstest.console.exe ChromiumTests64.dll /Settings:DisableAppDomain.runsettings
See sample project at https://github.com/jozefizso/ChromiumUnitTests
Expected behavior
Unit tests should run.
Actual behavior
Test run will fail:
Environment
AB#1677596