Skip to content
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

Unit test ApplicationExecutor #2076

Merged
merged 4 commits into from
Feb 5, 2024
Merged

Unit test ApplicationExecutor #2076

merged 4 commits into from
Feb 5, 2024

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Feb 5, 2024

ApplicationExecutor is a big file (almost 1000 lines) with zero unit test coverage. This PR refactors ApplicationExecutor where needed to make it unit testable and add an example test.

I expect most tests will be along the lines of putting resources or configuration into the app executor and then asserting the values sent to the Kubernetes service are what we'd expect.

I expect additional changes will be required to app executor and friends for testing more scenarios, but this is a start.

Microsoft Reviewers: Open in CodeFlow

@JamesNK JamesNK added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Feb 5, 2024
@mitchdenny mitchdenny added this to the preview 4 (Mar) milestone Feb 5, 2024
Copy link
Member

@davidfowl davidfowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@JamesNK JamesNK merged commit 5f492a3 into main Feb 5, 2024
8 checks passed
@JamesNK JamesNK deleted the jamesnk/unit-test-appexecutor branch February 5, 2024 22:57
radical pushed a commit to radical/aspire that referenced this pull request Feb 6, 2024
radical pushed a commit to radical/aspire that referenced this pull request Feb 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants