Skip to content

Commit

Permalink
Tests for all types supported by postgres (many skipped)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmu committed Dec 19, 2023
1 parent 47dc11f commit 24b5216
Show file tree
Hide file tree
Showing 2 changed files with 685 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testing/go/framework_test.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

0 comments on commit 24b5216

Please sign in to comment.