-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchaakoo_suites_test.go
45 lines (36 loc) · 962 Bytes
/
chaakoo_suites_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
package chaakoo
import (
"github.com/rs/zerolog/log"
"os"
"testing"
)
type GridSuite struct {
}
func TestPrepareGrid(t *testing.T) {
suite := GridSuite{}
readTestConfig("prepare_grid_testcases")
t.Run("TestPrepareGrid", suite.testPrepareGrid)
}
func TestPreparePane(t *testing.T) {
suite := GridSuite{}
readTestConfig("prepare_pane_testcases")
t.Run("TestPreparePane", suite.testPreparePanes)
}
func TestPrepareGraph(t *testing.T) {
suite := GridSuite{}
readTestConfig("prepare_graph_testcases")
t.Run("TestPrepareGraph", suite.testPrepareGraph)
}
type TmuxWrapperTestSuite struct {
}
func TestTmuxWrapper_Apply(t *testing.T) {
suite := TmuxWrapperTestSuite{}
ci := os.Getenv("CI")
log.Info().Str("CI", ci).Msg("ci environment check")
if len(ci) > 0 && ci == "true" {
readTestConfig("tmux_wrapper_apply_test_cases_ci")
} else {
readTestConfig("tmux_wrapper_apply_test_cases")
}
t.Run("TmuxWrapper", suite.testTmuxWrapperApply)
}