Skip to content

Added mockgoose - #347

Open
Christilut wants to merge 5 commits into
kunalkapadia:developfrom
Christilut:develop
Open

Added mockgoose#347
Christilut wants to merge 5 commits into
kunalkapadia:developfrom
Christilut:develop

Conversation

@Christilut

@Christilut Christilut commented Mar 24, 2017

Copy link
Copy Markdown

Mockgoose uses an in-memory version of mongodb so tests start fresh each time and no database is polluted should certain tests fail.

Edit: one thing ive noticed with Mockgoose is that if your internet is slow (or not available), the first test that uses mockgoose will fail with timeout exceeded. I think this is because mockgoose is checking if the prebuilt mongodb binary is up to date. Not sure this is acceptable for this project but personally I'm okay with it. See Mockgoose/Mockgoose#20

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 89.241% when pulling 62c763f on Christilut:develop into 8bc61e2 on KunalKapadia:develop.

@coveralls

coveralls commented Mar 24, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 89.241% when pulling 6ed47ab on Christilut:develop into 8bc61e2 on KunalKapadia:develop.

@simonschllng

Copy link
Copy Markdown

This looks wrong. Mockgoose says it spins up a mongod and the example shows how to add this to the chai tests. Why do you implement it in the server?

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 this pull request may close these issues.

3 participants