Skip to content

fix(backend): add h2 in-memory database to resolve CI application con… - #3

Merged
wonder37-debug merged 1 commit into
devfrom
fix/h2-test-database
Apr 13, 2026
Merged

fix(backend): add h2 in-memory database to resolve CI application con…#3
wonder37-debug merged 1 commit into
devfrom
fix/h2-test-database

Conversation

@wonder37-debug

Copy link
Copy Markdown
Owner

…text crash

Copilot AI review requested due to automatic review settings April 13, 2026 08:44
@coderabbitai

coderabbitai Bot commented Apr 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: aef79675-ff52-4b8e-9f77-ffc296166ed5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/h2-test-database

Comment @coderabbitai help to get the list of available commands and usage tips.

@wonder37-debug
wonder37-debug merged commit 31ba27e into dev Apr 13, 2026
5 of 6 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@wonder37-debug
wonder37-debug deleted the fix/h2-test-database branch April 13, 2026 08:50
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