diff options
author | Vitor Mattos <vitor@php.rio> | 2023-04-25 12:23:35 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-04-25 12:23:35 -0300 |
commit | cb537d68eb218a557ad3599b39ad84c6b5c20d50 (patch) | |
tree | 6d3b46c02cf52a7d19ca62355ae53e969b2cb892 /tests | |
parent | bf1ca6be148741b6840fae64bcc71feec076ecc0 (diff) |
Add integration test to cover json output
Verified only if the output contain a common json simbols: list of
objects: [{
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/features/command/command-list.feature | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/integration/features/command/command-list.feature b/tests/integration/features/command/command-list.feature new file mode 100644 index 000000000..0aac0cd31 --- /dev/null +++ b/tests/integration/features/command/command-list.feature @@ -0,0 +1,11 @@ +Feature: command/command-list + + Scenario: List all available commands as plain text + Given invoking occ with "talk:command:list" + Then the command was successful + And the command output contains the text "Response values: 0 - No one" + + Scenario: List all available commands as json + Given invoking occ with "talk:command:list --output=json" + Then the command was successful + And the command output contains the text "[{" |