fix(backend): add h2 in-memory database to resolve CI application con… - #3
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR addresses CI application context startup failures by ensuring an embedded database is available during test runs.
Changes:
- Add an H2 in-memory database dependency for the test scope to allow Spring Boot to auto-configure a DataSource in tests.
- Minor formatting/whitespace cleanup in the test class and
pom.xml.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
backend/pom.xml |
Adds com.h2database:h2 as a test dependency so tests can start without an external DB. |
backend/src/test/java/com/campushub/backend/BackendApplicationTests.java |
Whitespace/indentation normalization in the basic context-load test. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…text crash