Skip to content

refactor(test): slice UnifiedConfigBeansTest to ApplicationContextRunner (#50)#55

Merged
aksOps merged 1 commit into
mainfrom
cleanup/slice-unifiedconfig-beans-test
Apr 23, 2026
Merged

refactor(test): slice UnifiedConfigBeansTest to ApplicationContextRunner (#50)#55
aksOps merged 1 commit into
mainfrom
cleanup/slice-unifiedconfig-beans-test

Conversation

@aksOps

@aksOps aksOps commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace @SpringBootTest + @ActiveProfiles("test") + @Autowired in UnifiedConfigBeansTest with ApplicationContextRunner that loads only UnifiedConfigBeans + ProjectConfigLoader.
  • Sub-second per-test execution (0.771s for all 4) vs. multi-second full-context startup, same correctness guarantee for the config-wiring surface.
  • Two non-Spring tests (malformed yml, overlay-flow) kept untouched — they already exercise ConfigResolver directly.

Test plan

  • mvn -B -Dtest='UnifiedConfigBeansTest' test — 4/4 green, 0.771s
  • CI green on PR

🤖 Generated with Claude Code

…ner (#50)

Replace full @SpringBootTest bootstrap with ApplicationContextRunner that
loads only UnifiedConfigBeans + ProjectConfigLoader. All 4 tests pass in
under a second vs. multi-second full-context startup, same correctness
guarantee for the config-wiring surface.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@aksOps aksOps merged commit fb86925 into main Apr 23, 2026
9 checks passed
@aksOps aksOps deleted the cleanup/slice-unifiedconfig-beans-test branch April 26, 2026 05:52
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.

1 participant