We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing.M
TestMain
It may be nice to utilize https://github.com/ory/dockertest as well, but this seems very heavyweight.
The text was updated successfully, but these errors were encountered:
A common pattern with https://godoc.org/github.com/blend/go-sdk/db is to do
func TestMain(m *testing.M) { conn, err := db.New(db.OptConfigFromEnv()) if err != nil { log.Fatalf("%+v", err) } err = OpenDefaultDB(conn) if err != nil { log.Fatalf("%+v", err) } assert.Main(m) }
so it may be worth one (or both) of
postgres.Config
go-sdk/db
Subscript, see current dependencies:
$ git log -1 --pretty=%H 1f7dffc658eb39b0c473c107bafeaac66168d9e8 $ go list -f '{{ .ImportPath }} | {{ .Imports }}' ./... github.com/dhermes/golembic | [context database/sql errors fmt io/ioutil sync time] github.com/dhermes/golembic/command | [context errors fmt github.com/dhermes/golembic github.com/dhermes/golembic/postgres github.com/spf13/cobra github.com/spf13/pflag os strings time] github.com/dhermes/golembic/examples | [github.com/dhermes/golembic path/filepath] github.com/dhermes/golembic/examples/cmd | [github.com/dhermes/golembic/command github.com/dhermes/golembic/examples github.com/lib/pq log] github.com/dhermes/golembic/examples/script | [context github.com/dhermes/golembic github.com/dhermes/golembic/examples github.com/dhermes/golembic/postgres github.com/lib/pq log os] github.com/dhermes/golembic/postgres | [database/sql errors fmt github.com/dhermes/golembic net/url strings time]
Sorry, something went wrong.
dhermes
No branches or pull requests
It may be nice to utilize https://github.com/ory/dockertest as well, but this seems very heavyweight.
The text was updated successfully, but these errors were encountered: