Skip to content

test(mdx-models): raise coverage threshold from 0.21 to 0.80#378

Merged
mattnichols merged 1 commit into
masterfrom
matt/bump_test_coverage
Jun 17, 2026
Merged

test(mdx-models): raise coverage threshold from 0.21 to 0.80#378
mattnichols merged 1 commit into
masterfrom
matt/bump_test_coverage

Conversation

@mattnichols

@mattnichols mattnichols commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

https://mxcom.atlassian.net/browse/MC-13289

Summary

  • Raised minimumCoverage in mdx-models from 0.21 → 0.80 (actual instruction coverage: 92%)
  • Added 55 new Groovy/Spock test files covering all 67 accessor base classes across every
    domain (account, ach_transfer, authorization, credit_report, cross_account_transfer,
    device, document, location, managed_card, origination, p2p_transfer, payment, payout,
    products, profile, remote_deposit, transfer)
  • Added tests for utility/model classes: Resources, CharArrayAdapter,
    ModelWrappableSerializer, AccountType, Frequency, MdxMappingException
  • Excluded pure POJO domain model packages from coverage calculation (same pattern
    mdx-gateways uses for its generated/accessor packages)
  • Excluded boilerplate exception and error-descriptor classes from coverage

Test Plan

  • ./gradlew :mdx-models:test — all 569 tests pass
  • ./gradlew :mdx-models:jacocoTestCoverageVerification — passes at ≥ 0.80
  • ./gradlew :mdx-models:check — full check including Spotless passes

- Added 55 new Groovy Spock test files covering all 67 accessor base
  classes across every domain (account, transfer, payment, profile, etc.)
- Added tests for utility classes: Resources, CharArrayAdapter,
  ModelWrappableSerializer, AccountType, Frequency, MdxMappingException
- Excluded POJO domain model packages from coverage calculation (same
  pattern used by mdx-gateways for its generated/accessor packages)
- Excluded boilerplate exception/error-descriptor classes from coverage
- Raised minimumCoverage from 0.21 → 0.80 (actual instruction coverage: 92%)
@mattnichols mattnichols merged commit f78468d into master Jun 17, 2026
7 checks passed
@mattnichols mattnichols deleted the matt/bump_test_coverage branch June 17, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants