Skip to content

Commit b527978

Browse files
committed
added field to ScriptTest to skip script test
1 parent caed79c commit b527978

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

enginetest/evaluation.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ func TestScriptWithEngine(t *testing.T, e QueryEngine, harness Harness, script q
8585

8686
t.Run(script.Name, func(t *testing.T) {
8787
if sh, ok := harness.(SkippingHarness); ok {
88+
if script.Skip {
89+
t.Skip()
90+
}
91+
8892
if sh.SkipQueryTest(script.Name) {
8993
t.Skip()
9094
}

enginetest/queries/script_queries.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ type ScriptTest struct {
5252
// Dialect is the supported dialect for this script, which must match the dialect of the harness if specified.
5353
// The script is skipped if the dialect doesn't match.
5454
Dialect string
55+
// Skip is used to completely skip a test, not execute any part of the script, and to record it as a skipped test in
56+
// the test suite results.
57+
Skip bool
5558
}
5659

5760
type ScriptTestAssertion struct {

0 commit comments

Comments
 (0)