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

Extract Aspire.Hosting.NodeJs.Tests project #5142

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

eerhardt
Copy link
Member

@eerhardt eerhardt commented Aug 1, 2024

Extract the main NodeJs tests from Aspire.Hosting.Tests and the end-to-end TestProject.

Aspire.Hosting.Tests still uses NodeJs in a few places as an example "Executable" resource. Since NodeJs is just being used as an example - and not testing NodeJs itself, I decided to leave Aspire.Hosting.Tests using it.

Also fix an issue with the RequiresTools attribute when the executable isn't an ".exe" extension - like npm is on Windows - it is npm.cmd.

Contributes to #4294

Microsoft Reviewers: Open in CodeFlow

@mitchdenny
Copy link
Member

@eerhardt this looks good to me. Although it looks like the test is timing out.

[Fact]
public async Task VerifyManifest()
{
using var builder = TestDistributedApplicationBuilder.Create();
Copy link
Member

Choose a reason for hiding this comment

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

Fine since no Docker image is involved with Node resources.

Extract the main NodeJs tests from Aspire.Hosting.Tests and the end-to-end TestProject.

Aspire.Hosting.Tests still uses NodeJs in a few places as an example "Executable" resource. Since NodeJs is just being used as an example - and not testing NodeJs itself, I decided to leave Aspire.Hosting.Tests using it.

Also fix an issue with the RequiresTools attribute when the executable isn't an ".exe" extension - like npm is on Windows - it is `npm.cmd`.

Contributes to dotnet#4294
@eerhardt eerhardt enabled auto-merge (squash) August 6, 2024 23:51
@eerhardt eerhardt merged commit 423a768 into dotnet:main Aug 7, 2024
11 checks passed
@eerhardt eerhardt deleted the ExtractNodeJSTests branch August 7, 2024 16:52
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants