-
Notifications
You must be signed in to change notification settings - Fork 406
/
Copy pathe2e_suite_test.go
47 lines (40 loc) · 1.31 KB
/
e2e_suite_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package e2e
import (
"os"
"runtime"
"testing"
"time"
"github.com/onsi/ginkgo/v2"
"github.com/onsi/gomega"
"github.com/loft-sh/devpod/e2e/framework"
// Register tests
_ "github.com/loft-sh/devpod/e2e/tests/build"
_ "github.com/loft-sh/devpod/e2e/tests/context"
_ "github.com/loft-sh/devpod/e2e/tests/ide"
_ "github.com/loft-sh/devpod/e2e/tests/integration"
_ "github.com/loft-sh/devpod/e2e/tests/machine"
_ "github.com/loft-sh/devpod/e2e/tests/machineprovider"
_ "github.com/loft-sh/devpod/e2e/tests/provider"
_ "github.com/loft-sh/devpod/e2e/tests/proxyprovider"
_ "github.com/loft-sh/devpod/e2e/tests/ssh"
_ "github.com/loft-sh/devpod/e2e/tests/up"
)
// TestRunE2ETests checks configuration parameters (specified through flags) and then runs
// E2E tests using the Ginkgo runner.
// If a "report directory" is specified, one or more JUnit test reports will be
// generated in this directory, and cluster logs will also be saved.
// This function is called on each Ginkgo node in parallel mode.
func TestRunE2ETests(t *testing.T) {
if runtime.GOOS != "linux" {
go framework.ServeAgent()
// wait for http server to be up and running
for {
time.Sleep(time.Second)
if os.Getenv("DEVPOD_AGENT_URL") != "" {
break
}
}
}
gomega.RegisterFailHandler(ginkgo.Fail)
ginkgo.RunSpecs(t, "DevPod e2e suite")
}