Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ignite
GitHub Repository: ignite/cli
Path: blob/main/integration/simulation/simapp_test.go
1007 views
1
//go:build !relayer
2
3
package simulation_test
4
5
import (
6
"testing"
7
8
envtest "github.com/ignite/cli/v29/integration"
9
)
10
11
func TestGenerateAnAppAndSimulate(t *testing.T) {
12
var (
13
env = envtest.New(t)
14
app = env.ScaffoldApp("github.com/test/blog")
15
)
16
17
app.Scaffold(
18
"create a list",
19
false,
20
"list", "foo", "foobar",
21
)
22
23
app.Scaffold(
24
"create an singleton type",
25
false,
26
"single", "baz", "foobar",
27
)
28
29
app.Scaffold(
30
"create an singleton type",
31
false,
32
"list", "noSimapp", "foobar", "--no-simulation",
33
)
34
35
app.Scaffold(
36
"create a message",
37
false,
38
"message", "msgFoo", "foobar",
39
)
40
41
app.Scaffold(
42
"scaffold a new module",
43
false,
44
"module", "new_module",
45
)
46
47
app.Scaffold(
48
"create a map",
49
false,
50
"map",
51
"bar",
52
"foobar",
53
"--module",
54
"new_module",
55
)
56
57
app.Simulate(100, 50)
58
}
59
60