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

add snapshot test for Mimir's GraphQL schema #509

Open
boscohyun opened this issue Nov 21, 2024 · 0 comments
Open

add snapshot test for Mimir's GraphQL schema #509

boscohyun opened this issue Nov 21, 2024 · 0 comments
Labels
good first issue Good for newcomers mimir

Comments

@boscohyun
Copy link
Contributor

boscohyun commented Nov 21, 2024

Create Mimir.Tests proejct if not exists

Add snapshot test for Mimir's GraphQL schema

  • snapshot test package: Verify, Verify.Xunit

Example:

[Fact]
public async Task VerifySchemaChange()
{
    var schema = await new ServiceCollection()
        .AddGraphQLServer()
        .AddLib9cGraphQLTypes()
        .AddMimirGraphQLTypes()
        .BuildSchemaAsync();
    Verify(schema.ToString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers mimir
Projects
Status: No Assignee
Development

No branches or pull requests

1 participant