Skip to content

Monufacture: Easily Set up MongoDB documents for Testing

Photo of MongoDB
Hosted By
MongoDB
Monufacture: Easily Set up MongoDB documents for Testing

Details

Hi everyone,

This month we'll have Tom Leach from Gamechanger discuss their open source library, Monofacture.

One of the biggest selling points of MongoDB is its ability to directly persist arbitrary object structures without requiring the developer to navigate issues like building an ORM layer. However, this flexibility comes at a price - creating meaningful test data which adheres to these more complex structures can be much more involved.

At GameChanger we observed that developers typically had to write large amounts of test data setup boilerplate to perform an effective test against a MongoDB-dependent function, dis-incentivizing them from writing rigorous tests. So we created Monufacture - a Python test data generation framework for MongoDB that makes setting up test data a breeze.

In this talk I'll be breaking down some of motivations and design decisions behind Monufacture, demoing its functionality and giving some tips on how to write effective tests of your MongoDB-dependent code.

Note: Gamechanger is in Suite 202

Photo of New York MongoDB User Group group
New York MongoDB User Group
See more events
GameChanger
86 Chambers St. · New York, NY