Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LfMerge integration tests with real MongoDB container #345

Closed
rmunn opened this issue Aug 19, 2024 · 1 comment · Fixed by #348
Closed

LfMerge integration tests with real MongoDB container #345

rmunn opened this issue Aug 19, 2024 · 1 comment · Fixed by #348
Assignees

Comments

@rmunn
Copy link
Collaborator

rmunn commented Aug 19, 2024

LfMerge integration tests in #342 currently run against a mock Mongo connection. But for real end-to-end testing, we probably want to set up a real MongoDB instance and populate the test project in Mongo, then run the tests that way. We're not talking about setting up an entire local Language Forge, just a Mongo database.

This will be a good follow-up issue once #342 is merged.

@rmunn rmunn self-assigned this Aug 19, 2024
@rmunn
Copy link
Collaborator Author

rmunn commented Aug 22, 2024

To launch a local Mongo, I'd probably use docker run mongo:6 with appropriate options (-d to detach and run in background, -n lfmerge-test-db to have a predictable name, -p 27017 to forward container port 27017 to a random local port, and so on). Then run docker port lfmerge-test-db 27017 to find out which random local port docker has found available, and configure LfMerge's Mongo connection to use that port.

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 a pull request may close this issue.

1 participant