How To Test Ruby CLI: The Setup
One of the most interesting challenges I met during Hanami development is to write isolated integration tests. The framework ships with an extensive Command Line Interface (CLI) to generate (or destroy) code, start the server, open a Ruby (or a database) console, create/drop the database, run the migrations, precompile assets, and print informations. Full Isolation As I want to have integration tests to use CLI commands for real, the test suite is free of mocks/stubs. »