Skip to content

How to pass testDB to generated tests #462

Discussion options

You must be logged in to vote

It seems like I need to add a new file to the generated packages that uses TestMain to init my test database and testDB

This is the intended way.

As long as the file does not end in .bob.go or .bob_test.go, it will not be overwritten

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants