Skip to content

Enable running MongoDB core tests on local dev machines #280

@shaypal5

Description

@shaypal5

Today we are only able to run the MongoDB core tests on our CI, which sets up a test MongoDB server via a GitHub action that spins one up using Docker.

We would like our developers to have the ability to run the MongoDB core test suit locally, on their laptops.

Possible directions for a solution:

  • Requiring the developer has Docker set up and running in the background
  • Writing a custom .sh script that spins up a lightweight MongoDB server via server, injects the proper env vars to the local shell, calls pytest -m "mongo and memory and pickle and maxage", then tears things down, enabling the user to run the test suit and see pytest results (including coverage).

But that's just off the top of my head, and implementation details are of lesser importance, as long as the functionality and user experience for the developers is as stated (or better).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions