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

Adding Integration Tests for MongoDB #579

Open
fguisso opened this issue Nov 8, 2023 · 2 comments · May be fixed by #580
Open

Adding Integration Tests for MongoDB #579

fguisso opened this issue Nov 8, 2023 · 2 comments · May be fixed by #580
Assignees

Comments

@fguisso
Copy link
Member

fguisso commented Nov 8, 2023

🚀 Problem Description:
Integration tests for MongoDB are not currently included in our CI/CD pipeline and local testing. These tests are crucial for validating the behavior of our application with a MongoDB database.

🔍 Steps to Reproduce:
N/A

🎯 Expected Behavior:
Implement a test suite for MongoDB integration that can be executed in any CI/CD platform and during local development. These tests should involve provisioning a MongoDB instance, running query-focused tests, and then tearing down the MongoDB instance.

🏭 Current Behavior:
Our testing setup lacks MongoDB integration tests, which can lead to potential issues going unnoticed until later stages of development.

🛠️ Proposed Changes:

  • Develop a test suite for MongoDB integration that can be executed in any CI/CD platform or locally.

    1. 🏗️ Provision a MongoDB instance for testing purposes.
    2. 🧪 Execute integration tests that focus on MongoDB queries and interactions.
    3. 🧹 Gracefully shut down and clean up the MongoDB instance after the tests are complete.
  • 🚀 Create a GitHub Action that starts this test in PRs.

🔗 Dependencies:
Access to a MongoDB instance or the ability to set up a MongoDB container.
The MongoDB test suite or test framework for query-focused tests.

🧪 Testing:
Test the MongoDB integration test suite to ensure it correctly provisions, tests, and cleans up the MongoDB instance in various environments, including CI/CD platforms and local development setups.

📖 Documentation Updates:
Update the project's documentation to inform contributors and maintainers about the new MongoDB integration tests and how to run them in different environments.

🌟 Expected Impact:
Adding MongoDB integration tests will enhance the testing coverage, ensuring that our application's MongoDB interactions work as expected, regardless of the environment in which the tests are run.

ℹ️ Additional Information:
Provide guidance on configuring MongoDB connections for testing in different environments.
Encourage contributors to run these tests locally before making changes that involve MongoDB interactions.

📝 Note:
Ensure that the MongoDB integration tests are designed to work across various CI/CD platforms and can be executed locally without platform-specific configurations.

@michelaquino
Copy link

@fguisso I will work on this issue.

@fguisso fguisso assigned michelaquino and unassigned fguisso Nov 8, 2023
@michelaquino michelaquino linked a pull request Nov 20, 2023 that will close this issue
@michelaquino
Copy link

Hi @fguisso, I opened the PR to close this issue. Let me know if something needs to be adjusted.

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.

2 participants