Skip to content

test(grails-data-graphql): add missing test coverage across the module - #16201

Open
borinquenkid wants to merge 1 commit into
8.1.xfrom
test/grails-data-graphql-coverage
Open

test(grails-data-graphql): add missing test coverage across the module#16201
borinquenkid wants to merge 1 commit into
8.1.xfrom
test/grails-data-graphql-coverage

Conversation

@borinquenkid

@borinquenkid borinquenkid commented Aug 23, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds specs that were missing coverage across grails-data-graphql-core: binding, fetcher, fetcher/interceptor, response, and the scalar coercion package (including all jsr310 date/time coercions).
  • Removes a dead, already-disabled spec (MongoSchemaSpec.groovy.disabled).

This is the foundation commit for a series of smaller cleanup PRs that follow (each fixes IntelliJ-flagged issues in one package and stacks on this one):

Test plan

  • ./gradlew :grails-data-graphql-core:test :grails-data-graphql:test :grails-data-graphql-core:codeStyle :grails-data-graphql:codeStyle passes

🤖 Generated with Claude Code

…bled spec

Removes MongoSchemaSpec.groovy.disabled, an orphaned test for MongoDB
support the module no longer depends on. Adds Spock specs closing
coverage gaps identified across the module: all untested scalar
Coercing implementations (Currency, Date, SqlDate, Time, TimeZone,
Timestamp, URI, URL, UUID, and the JSR-310 date/time coercions),
CountEntityDataFetcher, PaginatedEntityDataFetcher,
PersistentPropertyDataFetcher, ClosureDataFetchingEnvironment,
CachingGraphQLResponseHandler, KeyClassQuery,
DataBinderNotFoundException, and DataFetcherNotFoundException.
Renames the existing MutationInterceptorInvokerSpec/
QueryInterceptorInvokerSpec to Custom*InterceptorInvokerSpec since
they actually exercised the Custom*InterceptorInvoker classes, and
adds specs for the real MutationInterceptorInvoker/
QueryInterceptorInvoker. Also extends
DefaultGraphQLErrorsResponseHandlerSpec to cover the LocaleAwareContext
branch of getLocale().

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 23, 2026 16:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Aug 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.4149%. Comparing base (75cd618) to head (36b7716).

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##                8.1.x     #16201   +/-   ##
=============================================
  Coverage     53.4149%   53.4149%           
  Complexity      19459      19459           
=============================================
  Files            2081       2081           
  Lines           98993      98993           
  Branches        17361      17361           
=============================================
  Hits            52877      52877           
  Misses          38566      38566           
  Partials         7550       7550           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@testlens-app

testlens-app Bot commented Aug 23, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 36b7716
▶️ Tests: 64690 executed
⚪️ Checks: 77/77 completed


Learn more about TestLens at testlens.app/docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants