This repository was archived by the owner on Apr 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 145145 <source>(I )execute :command from project root</source>
146146 <target></target>
147147 </trans-unit>
148+ <trans-unit id="i-display-the-last-command-output">
149+ <source>(I )display the last command output</source>
150+ <target></target>
151+ </trans-unit>
148152 <trans-unit id="command-should-succeed">
149153 <source>command should succeed</source>
150154 <target></target>
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ public function iExecuteFromProjectRoot($cmd)
4848 $ this ->iExecute ($ cmd );
4949 }
5050
51+ /**
52+ * Display the last command output
53+ *
54+ * @Then (I )display the last command output
55+ */
56+ public function iDumpCommandOutput ()
57+ {
58+ echo implode (PHP_EOL , $ this ->output );
59+ }
60+
5161 /**
5262 * Command should succeed
5363 *
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ Feature: System feature
1313 Given I execute "sleep 2"
1414 Then Command should last more than 1 seconds
1515
16+ Scenario : Testing displaying output
17+ Given I execute "echo 'Hello world'"
18+ Then display the last command output
19+
1620 Scenario : Testing execution output
1721 Given I execute "echo 'Hello world'"
1822 Then output should contain "Hello world"
You can’t perform that action at this time.
0 commit comments