How to pass testDB to generated tests #462
-
I'm struggling to figure out what this comment expects me to do in order to enable the full test suite for generated code // Set the testDB to enable tests that use the database
var testDB bob.Transactor It seems like I need to add a new file to the generated packages that uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is the intended way. As long as the file does not end in |
Beta Was this translation helpful? Give feedback.
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