This repository was archived by the owner on Apr 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 145
145
<source>(I )execute :command from project root</source>
146
146
<target></target>
147
147
</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>
148
152
<trans-unit id="command-should-succeed">
149
153
<source>command should succeed</source>
150
154
<target></target>
Original file line number Diff line number Diff line change @@ -48,6 +48,16 @@ public function iExecuteFromProjectRoot($cmd)
48
48
$ this ->iExecute ($ cmd );
49
49
}
50
50
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
+
51
61
/**
52
62
* Command should succeed
53
63
*
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ Feature: System feature
13
13
Given I execute "sleep 2"
14
14
Then Command should last more than 1 seconds
15
15
16
+ Scenario : Testing displaying output
17
+ Given I execute "echo 'Hello world'"
18
+ Then display the last command output
19
+
16
20
Scenario : Testing execution output
17
21
Given I execute "echo 'Hello world'"
18
22
Then output should contain "Hello world"
You can’t perform that action at this time.
0 commit comments