Graphql-coverage
14-Dec-2023 855
The motivation of this gem is to enforce the coverage of GraphQL queries in testing.In our projects, we have a rule that the test cases must cover all GraphQL fields. However, it is difficult to enforce this rule because we have no tools to check the coverage of GraphQL fields.You may think that we can check the coverage of GraphQL fields with ordinary coverage tools such as simplecov. However, it is not enough because GraphQL fields are often defined without method definition. For example:.
Graphql-coverage #ruby #rubydeveloper #rubyonrails #Graphql-coverage https://rubyonrails.ba/link/graphql-coverage