Some checks failed
Docs Deploy / build_and_deploy (push) Has been cancelled
Generate Docs / cli (push) Has been cancelled
Generate Config Doc / cli (push) Has been cancelled
Go formatting / go-formatting (push) Has been cancelled
Check links / markdown-link-check (push) Has been cancelled
Integration / pre-test (push) Has been cancelled
Integration / test on (push) Has been cancelled
Integration / status (push) Has been cancelled
Lint / Lint Go code (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
58 lines
827 B
Go
58 lines
827 B
Go
//go:build !relayer
|
|
|
|
package simulation_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
envtest "git.cw.tr/mukan-network/mukan-ignite/integration"
|
|
)
|
|
|
|
func TestGenerateAnAppAndSimulate(t *testing.T) {
|
|
var (
|
|
env = envtest.New(t)
|
|
app = env.ScaffoldApp("github.com/test/blog")
|
|
)
|
|
|
|
app.Scaffold(
|
|
"create a list",
|
|
false,
|
|
"list", "foo", "foobar",
|
|
)
|
|
|
|
app.Scaffold(
|
|
"create an singleton type",
|
|
false,
|
|
"single", "baz", "foobar",
|
|
)
|
|
|
|
app.Scaffold(
|
|
"create an singleton type",
|
|
false,
|
|
"list", "noSimapp", "foobar", "--no-simulation",
|
|
)
|
|
|
|
app.Scaffold(
|
|
"create a message",
|
|
false,
|
|
"message", "msgFoo", "foobar",
|
|
)
|
|
|
|
app.Scaffold(
|
|
"scaffold a new module",
|
|
false,
|
|
"module", "new_module",
|
|
)
|
|
|
|
app.Scaffold(
|
|
"create a map",
|
|
false,
|
|
"map",
|
|
"bar",
|
|
"foobar",
|
|
"--module",
|
|
"new_module",
|
|
)
|
|
|
|
app.Simulate(100, 50)
|
|
}
|