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

Migrate to xunit v3 #839

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Migrate to xunit v3 #839

merged 1 commit into from
Dec 20, 2024

Conversation

martincostello
Copy link
Owner

Migrate to xunit v3 for tests.

Migrate to xunit v3 for tests.
@martincostello martincostello added enhancement New feature or request dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Dec 20, 2024
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 18 changed files in this pull request and generated 1 comment.

Files not reviewed (13)
  • Directory.Build.props: Language not supported
  • Directory.Packages.props: Language not supported
  • samples/MathsFunctions.Tests/MathsFunctions.Tests.csproj: Language not supported
  • samples/MinimalApi.Tests/MinimalApi.Tests.csproj: Language not supported
  • tests/AwsLambdaTestServer.Tests/MartinCostello.Testing.AwsLambdaTestServer.Tests.csproj: Language not supported
  • samples/MinimalApi.Tests/ApiTests.cs: Evaluated as low risk
  • samples/MinimalApi.Tests/HttpLambdaTestServer.cs: Evaluated as low risk
  • tests/AwsLambdaTestServer.Tests/AssemblyFixture.cs: Evaluated as low risk
  • tests/AwsLambdaTestServer.Tests/AwsIntegrationTests.cs: Evaluated as low risk
  • tests/AwsLambdaTestServer.Tests/Examples.cs: Evaluated as low risk
  • tests/AwsLambdaTestServer.Tests/HttpLambdaTestServer.cs: Evaluated as low risk
  • tests/AwsLambdaTestServer.Tests/ReverseFunctionWithCustomOptionsTests.cs: Evaluated as low risk
  • tests/AwsLambdaTestServer.Tests/ReverseFunctionWithMobileSdkTests.cs: Evaluated as low risk
Comments suppressed due to low confidence (2)

tests/AwsLambdaTestServer.Tests/HttpLambdaTestServerTests.cs:21

  • The use of ValueTask here might be inappropriate if DisposeAsync is expected to be awaited multiple times or if it is part of a public API. Consider reverting to Task.
public async ValueTask DisposeAsync()

tests/AwsLambdaTestServer.Tests/HttpLambdaTestServerTests.cs:31

  • The use of ValueTask here might be inappropriate if InitializeAsync is expected to be awaited multiple times or if it is part of a public API. Consider reverting to Task.
public async ValueTask InitializeAsync()

public static class LambdaTestServerCollection
{
}
public class LambdaTestServerCollection;
Copy link
Preview

Copilot AI Dec 20, 2024

Choose a reason for hiding this comment

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

The class declaration should not end with a semicolon. It should be defined with curly braces.

Suggested change
public class LambdaTestServerCollection;
public class LambdaTestServerCollection { }

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.88%. Comparing base (af6480c) to head (0546a73).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #839   +/-   ##
=======================================
  Coverage   96.88%   96.88%           
=======================================
  Files           8        8           
  Lines         289      289           
  Branches       32       32           
=======================================
  Hits          280      280           
  Misses          3        3           
  Partials        6        6           
Flag Coverage Δ
linux 96.88% <ø> (ø)
macos 96.19% <ø> (ø)
windows 96.19% <ø> (-0.70%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martincostello martincostello marked this pull request as ready for review December 20, 2024 14:10
@martincostello martincostello merged commit 498b1cf into main Dec 20, 2024
12 checks passed
@martincostello martincostello deleted the xunit-v3 branch December 20, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant