feat: e2e test opt (#746)

Signed-off-by: sjcsjc123 <1401189096@qq.com>
This commit is contained in:
SJC
2024-01-26 16:45:33 +08:00
committed by GitHub
parent c41264816e
commit a624351f84
8 changed files with 214 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ package test
import (
"flag"
"strings"
"testing"
"github.com/stretchr/testify/require"
@@ -54,6 +55,19 @@ func TestHigressConformanceTests(t *testing.T) {
IsEnvoyConfigTest: *flags.IsEnvoyConfigTest,
})
cSuite.Setup(t)
cSuite.Run(t, tests.ConformanceTests)
// Run the test suite
testArea := *flags.TestArea
testArea = strings.ToLower(testArea)
switch testArea {
case suite.TestAreaAll:
cSuite.Setup(t)
cSuite.Run(t, tests.ConformanceTests)
case suite.TestAreaRun:
cSuite.Run(t, tests.ConformanceTests)
case suite.TestAreaSetup:
cSuite.Cleanup = false
cSuite.Setup(t)
case suite.TessAreaClean:
cSuite.Clean(t)
}
}