Athena::Console::Spec::ApplicationTester
Inherits Athena::Console::Spec::Tester / Struct / Value / Object
Functionally similar to ACON::Spec::CommandTester, but used for testing entire ACON::Applications.
Can be useful if your project extends the base application in order to customize it in some way.
NOTE: Be sure to set ACON::Application#auto_exit= to false, when testing an entire application.
Constructors
Instance methods
Runs the application, with the provided input being used as the input of ACON::Application#run.
Custom values for decorated, interactive, and verbosity can also be provided and will be forwarded to their respective types.
capture_stderr_separately makes it so output to STDERR is captured separately, in case you wanted to test error output.
Otherwise both error and normal output are captured via ACON::Spec::Tester#display.
Runs the application, with the provided input being used as the input of ACON::Application#run.
Custom values for decorated, interactive, and verbosity can also be provided and will be forwarded to their respective types.
capture_stderr_separately makes it so output to STDERR is captured separately, in case you wanted to test error output.
Otherwise both error and normal output are captured via ACON::Spec::Tester#display.
Returns the ACON::Command::Status of the command execution, or nil if it has not yet been executed.