Debian Codegraph @

testing/e2e/xmpp/suite_test.go

raw
1 package e2e_test
2
3 import (
4 "os"
5 "testing"
6
7 "github.com/onsi/ginkgo/v2"
8 "github.com/onsi/gomega"
9 )
10
11 //nolint:paralleltest // Avoid using parallel test when making external calls
12 func Test_XMPP_E2E(t *testing.T) {
13 gomega.RegisterFailHandler(ginkgo.Fail)
14 ginkgo.RunSpecs(t, "XMPP E2E Tests")
15 }
16
17 func envOrSkip(key string) string {
18 value := os.Getenv(key)
19 if value == "" {
20 ginkgo.Skip(key + " not set, skipping XMPP e2e test")
21 }
22
23 return value
24 }