summaryrefslogtreecommitdiffstats
path: root/features/simple_cli_commands.feature
diff options
context:
space:
mode:
Diffstat (limited to 'features/simple_cli_commands.feature')
-rw-r--r--features/simple_cli_commands.feature22
1 files changed, 22 insertions, 0 deletions
diff --git a/features/simple_cli_commands.feature b/features/simple_cli_commands.feature
new file mode 100644
index 00000000..1121651c
--- /dev/null
+++ b/features/simple_cli_commands.feature
@@ -0,0 +1,22 @@
+Feature: run the cli,
+ call the help command,
+ exit the cli
+
+ Scenario: run the cli
+ Given we have pgcli installed
+ when we run pgcli
+ then we see pgcli prompt
+
+ Scenario: run "\?" command
+ Given we have pgcli installed
+ when we run pgcli
+ and we wait for prompt
+ and we send "\?" command
+ then we see help output
+
+ Scenario: run the cli and exit
+ Given we have pgcli installed
+ when we run pgcli
+ and we wait for prompt
+ and we send "ctrl + d"
+ then pgcli exits