Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
58 lines
816 B
Go
58 lines
816 B
Go
//go:build !relayer
|
|
|
|
package simulation_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
envtest "github.com/ignite/cli/v29/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)
|
|
}
|