cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

Testing Neo4j using GOlang

boris_bakman
Node Clone

Hi everybody,

I'm using the official neo4j-go-driver.
One thing is bothering me - lack of testing libraries.
Does anybody familiar with something relevant regards?

Thanks in advance,
Boris

  • Go
1 REPLY 1

Hi, what kind of testing do you have in mind?
For integration testing, you can either use the raw Docker Go library or testcontainers-go. The latter is used in this sample project: golang-neo4j-realworld-example/repository_test.go at main · neo4j-examples/golang-neo4j-realworld-ex....

For unit testing, you are free to pick any mock generator (GoMock, Mockery, ...), since the driver itself exposes its API via interfaces.