Skip to content

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

Merged
jdaugherty merged 1 commit into
8.0.xfrom
test/grails-data-graphql-coverage
Sep 23, 2026
Merged

jdaugherty merged 1 commit into
8.0.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

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 57.3614%. Comparing base (7edff9c) to head (df7efef).
⚠️ Report is 33 commits behind head on 8.0.x.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##                8.0.x     #16201        +/-   ##
==================================================
+ Coverage     56.4421%   57.3614%   +0.9193%     
- Complexity      22013      22918       +905     
==================================================
  Files            2130       2172        +42     
  Lines          103724     105238      +1514     
  Branches        18606      18837       +231     
==================================================
+ Hits            58544      60366      +1822     
+ Misses          36875      36500       -375     
- Partials         8305       8372        +67     

see 92 files with indirect coverage changes

🚀 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

This comment has been minimized.

…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>
@jdaugherty
jdaugherty force-pushed the test/grails-data-graphql-coverage branch from 36b7716 to df7efef Compare September 23, 2026 21:15
@jdaugherty
jdaugherty changed the base branch from 8.1.x to 8.0.x September 23, 2026 21:15
@jdaugherty
jdaugherty merged commit df7efef into 8.0.x Sep 23, 2026
79 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Apache Grails Sep 23, 2026
@jdaugherty
jdaugherty deleted the test/grails-data-graphql-coverage branch September 23, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants