supereagle / experiences

Summary of practical experience in work.
2 stars 0 forks source link

Test for Golang #39

Open supereagle opened 7 years ago

supereagle commented 7 years ago

Test for MongoDB

There is not in-memory MongoDB for test. Mgo which is the MongoDB driver for Go, also has to run its unit test on a local MongoDB server.

References

g-bhagat commented 5 years ago

@supereagle can you please elaborate on what exactly the need is.

supereagle commented 5 years ago

@supereagle can you please elaborate on what exactly the need is.

Collect some good practices for unit test in Golang. Take the codes to operate MongoDB for example, I want to run their unit tests without the need of a running MongoDB.