[JAVA-2398] Testing java mongodb driver source with mongodb running remotly Created: 06/Dec/16  Updated: 11/Sep/19  Resolved: 06/Dec/16

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Minor - P4
Reporter: ravi_ss Assignee: Unassigned
Resolution: Done Votes: 0
Labels: needs_info
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I have made changes to source code, I require to run all testcases to check its effect using command

./gradlew check

I am having the mongodb running in remote machine. Can anyone help me with configuring java mongodb driver with remotely running mongodb.



 Comments   
Comment by Ross Lawley [ 06/Dec/16 ]

Hi ravi_ss,

Thanks for the ticket - just for future reference, the best place for questions regarding MongoDB usage or the Java driver specifics is the mongodb-user mailinglist or stackoverflow as you will reach a boarder audience there. This project is for driver bugs or feature requests.

That said you can pass a connection string in like so:

./gradlew check -Dorg.mongodb.test.uri=mongodb://example.com:27017/

All the best,

Ross

Generated at Thu Feb 08 08:57:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.