shanejansen / touchstone

Touchstone is a testing framework for your services that focuses on component, end-to-end, and exploratory testing.
17 stars 2 forks source link

Mongo & MySQL assertion parallels #48

Open ScottFreeCode opened 2 years ago

ScottFreeCode commented 2 years ago

My thinking on MongoDB mocks is that, since it's a database, it should largely parallel MySQL (except where the difference between the two is relevant, if there are any).

In MySQL assertions we have four cases:

I know Mongo assertions have the first two, maybe the first three. Is there a way to implement all four in MongoDB queries?