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:
Or you can just run a specific test folder, like the list
types test
Usage
Create a new env and scaffold an empty chain:
Now, you can use the env to run the ignite commands and check the success status:
To check if the command returns an error, you can add the
envtest.ExecShouldError()
step: