Skip to content

Commit 24b5216

Browse files
committed
Tests for all types supported by postgres (many skipped)
1 parent 47dc11f commit 24b5216

File tree

2 files changed

+685
-0
lines changed

2 files changed

+685
-0
lines changed

testing/go/framework_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ type ScriptTest struct {
5252
// false before passing, meaning this prevents the commented-out situation where the developer forgets to uncomment
5353
// their code.
5454
Focus bool
55+
// Skip is used to completely skip a test including setup
56+
Skip bool
5557
}
5658

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

8890
t.Run(script.Name, func(t *testing.T) {
91+
if script.Skip {
92+
t.Skip("Skip has been set in the script")
93+
}
94+
8995
// Run the setup
9096
for _, query := range script.SetUpScript {
9197
_, err := conn.Exec(ctx, query)

0 commit comments

Comments
 (0)