Testing software with mongodb docker container.
go get -u github.com/pokerblow/mongotest
func TestMain(m *testing.M) {
cc := mongotest.StartMongoContainer("4.2")
// to get uri of mongodb write `cc.GetMongoURI("databaseName")`
code := m.Run()
cc.KillMongoContainer()
os.Exit(code)
}