cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Testing Neo4j using GOlang

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.