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).
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:
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).