You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing around with e2e testing on my Aspire/Blazor app, and have been trying out testing against a locally running aspire instance via 'DistributedApplicationTestingBuilder' (using Playwright/nUnit and Specflow).
I've got that working nicely locally, my tests spin up Aspire and Playwright is able to test against the local endpoint.
I've been having a go at seeing if the tests can run this way on my build pipeline (Azure DevOps agent), but realizing that as I'm using a redis cache, the build agent probably can't spin up redis locally as it won't have docker. I imagine the build agent is probably a container anyway, so would this be a container in a container? Is this something that can work or am I barking up the wrong tree?
(I can run these test post deploy as a smoke test instead).
I tried adding the 'Install Docker CLI' step to my pipeline to no avail. With an ubuntu agent I see errors like: error: net::ERR_NETWORK_CHANGED at https://localhost:35925/Dashboard
With a windows host I see:
System.InvalidOperationException : Command C:\hostedtoolcache\windows\dotnet\packs\Aspire.Hosting.Orchestration.win-x64\8.0.1\tools\dcp.exe info returned non-zero exit code -1
TearDown : BoDi.ObjectContainerException : Interface cannot be resolved: Microsoft.Extensions.Hosting.IHost (resolution path: Aspire.Hosting.DistributedApplication)
StackTrace: at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents(HookType hookType)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been playing around with e2e testing on my Aspire/Blazor app, and have been trying out testing against a locally running aspire instance via 'DistributedApplicationTestingBuilder' (using Playwright/nUnit and Specflow).
I've got that working nicely locally, my tests spin up Aspire and Playwright is able to test against the local endpoint.
I've been having a go at seeing if the tests can run this way on my build pipeline (Azure DevOps agent), but realizing that as I'm using a redis cache, the build agent probably can't spin up redis locally as it won't have docker. I imagine the build agent is probably a container anyway, so would this be a container in a container? Is this something that can work or am I barking up the wrong tree?
(I can run these test post deploy as a smoke test instead).
I tried adding the 'Install Docker CLI' step to my pipeline to no avail. With an ubuntu agent I see errors like:
error: net::ERR_NETWORK_CHANGED at https://localhost:35925/Dashboard
With a windows host I see:
Beta Was this translation helpful? Give feedback.
All reactions