mukan-ignite/integration
Mukan Erkin Törük c32551b6f7
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
refactor: replace all github.com upstream refs with git.cw.tr/mukan-network
2026-05-11 03:36:24 +03:00
..
account refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
app refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
chain refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
cosmosgen refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
doctor refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
faucet refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
ibc refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
list refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
map refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
other_components refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
params refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
plugin refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
relayer refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
simulation refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
single refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
testdata/tstestrunner feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions 2026-05-11 03:31:37 +03:00
tx refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
app.go refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
env.go refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
exec.go refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
msgs.go refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00
readme.md feat: fork Ignite CLI v29 as Mukan Ignite — remove cosmos-sdk restrictions 2026-05-11 03:31:37 +03:00
simulate.go refactor: replace all github.com upstream refs with git.cw.tr/mukan-network 2026-05-11 03:36:24 +03:00

Ignite CLI Integration Tests

The Ignite CLI integration tests build a new application and run all Ignite CLI commands to check the Ignite CLI code integrity. The runners and helper methods are located in this current folder. The test commands are split into folders, for better concurrency, each folder is a parallel job into the CI workflow. To create a new one, we only need to create a new folder. This will be automatically detected and added into the PR CI checks, or we can only create new tests into an existing folder or file.

Running synchronously all integration tests can be very slow. The command below can run everything:

go test -v -timeout 120m ./integration

Or you can just run a specific test folder, like the list types test

go test -v -timeout 120m ./integration/list

Usage

  • Create a new env and scaffold an empty chain:
var (
 env  = envtest.New(t)
 path = env.Scaffold("github.com/test/blog")
)
  • Now, you can use the env to run the ignite commands and check the success status:
env.Must(env.Exec("create a list with bool",
    step.NewSteps(step.New(
        step.Exec(envtest.IgniteApp, "s", "list", "--yes", "document", "signed:bool"),
        step.Workdir(path),
    )),
))
env.EnsureSteady()
  • To check if the command returns an error, you can add the envtest.ExecShouldError() step:
env.Must(env.Exec("should prevent creating a list with duplicated fields",
    step.NewSteps(step.New(
        step.Exec(envtest.IgniteApp, "s", "list", "--yes", "company", "name", "name"),
        step.Workdir(path),
    )),
    envtest.ExecShouldError(),
))
env.EnsureSteady()