-
Notifications
You must be signed in to change notification settings - Fork 736
Extract Aspire.Hosting.Dapr.Tests #5282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| <ItemGroup> | ||
| <InternalsVisibleTo Include="Aspire.Hosting.Tests" /> | ||
| <InternalsVisibleTo Include="Aspire.Hosting.Containers.Tests" /> | ||
| <InternalsVisibleTo Include="Aspire.Hosting.Dapr.Tests" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to change this. We shouldn't be using internals in these tests outside of our core tests. What is this needed for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await app.ExecuteBeforeStartHooksAsync(default); in DaprTests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we refactor the tests to not need to use an internal API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using UnsafeAccessor instead. It also works if part of this internal method is copied over, but I feel it's more brittle.
tests/Aspire.Hosting.Dapr.Tests/Aspire.Hosting.Dapr.Tests.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: Eric Erhardt <[email protected]>
|
Is it possible that the helix jobs don't have all the required files? This works locally. |
tests/Aspire.Hosting.Dapr.Tests/Aspire.Hosting.Dapr.Tests.csproj
Outdated
Show resolved
Hide resolved
|
We should add https://github.com/dotnet/aspire/blob/main/tests/Aspire.Workload.Tests/xunit.runner.json +
|
|
It has |
# Conflicts: # Aspire.sln # tests/Aspire.Hosting.Tests/Aspire.Hosting.Tests.csproj # tests/Aspire.Hosting.Tests/Schema/SchemaTests.cs
|
Fixed the conflicts. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Part of #4294
Microsoft Reviewers: Open in CodeFlow