Open jdasilva-olo opened 3 months ago
The tests are built on windows and run on linux. That might be the cause of this pain?
Not sure if you're asking me, but that's what it seems like. The build is behind the scenes and forced by Visual Studio. Even if I build on Linux then try to run the tests in VS I still couldn't get it to work.
Is there an existing issue for this?
Describe the bug
When you attempt to run tests remotely on WSL, the unit test will fail on
DistributedApplicationTestingBuilder.CreateAsync
with the exception noted below.I can see in the project metadata that the Windows path is being generated. I'm assuming there might be some cross compiling going on here 🤷♂️.
Expected Behavior
That the unit test project runs remotely on WSL without an exception.
Steps To Reproduce
Followed the setup instructions here (https://learn.microsoft.com/en-us/visualstudio/test/remote-testing?view=vs-2022) to enable remote debugging of unit tests. My
testEnvironments.json
is attached below. Using the Aspire Starter project, run the unit test remotely on WSL.Confirmed that the unit test runs successfully with no code. This single line will reproduce the exception:
var appHost = await DistributedApplicationTestingBuilder.CreateAsync<Projects.AspireTestLinuxDebugRepro_AppHost>();
Exceptions (if any)
Full Stack Trace:
.NET Version info
Windows
WSL
Anything else?
testEnvironments.json