Skip to content
New issue

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

End to end tests of all postgres types (many skipped) #77

Merged
merged 3 commits into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions testing/go/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ type ScriptTest struct {
// false before passing, meaning this prevents the commented-out situation where the developer forgets to uncomment
// their code.
Focus bool
// Skip is used to completely skip a test including setup
Skip bool
}

// ScriptTestAssertion are the assertions upon which the script executes its main "testing" logic.
Expand Down Expand Up @@ -86,6 +88,10 @@ func RunScript(t *testing.T, script ScriptTest) {
}()

t.Run(script.Name, func(t *testing.T) {
if script.Skip {
t.Skip("Skip has been set in the script")
}

// Run the setup
for _, query := range script.SetUpScript {
_, err := conn.Exec(ctx, query)
Expand Down
Loading