spring-projects / spring-projects/spring-data-mongodb

Fail the build when Mongo not running and tests are active

Open
#4,783 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: task
Dominant language
Java
Stars
1.7k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Mongo is required to be running for Spring Data Mongo DB tests to pass. It would be beneficial to fail the build when skip tests is NOT turned on. In other words if someone is skipping the tests then we don't care if Mongo is running or not.

Additional note: Mongo must be running without a custom username and password, otherwise the tests will fail due to connection being unauthorized

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the build configuration and Spring Data MongoDB test setup that control whether tests are skipped and how MongoDB is connected. Make an active-test build fail when MongoDB is unavailable while leaving skipped-test builds unaffected, and verify the behavior with the project’s test build.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, mongodb
Domain
build-system, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.