Add tests for common command-line errors

Specifically, making sure that they start with "exa", which is something that's been bugging me recently.
This commit is contained in:
Benjamin Sago 2021-04-12 21:55:22 +01:00
parent 550f2d29c2
commit b1c49341c0
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,22 @@
# Command-line errors
[[cmd]]
name = "exa --aoeu displays an error"
shell = "exa --aoeu"
stdout = { empty = true }
stderr = { file = "outputs/error_invalid_option.ansitxt" }
status = 3
tags = [ 'error' ]
[[cmd]]
name = "exa -Taa displays an error"
shell = "exa -Taa"
stdout = { empty = true }
stderr = { file = "outputs/error_tree_all_all.ansitxt" }
status = 3
tags = [ 'error' ]
# Error suggestions
[[cmd]]

View File

@ -0,0 +1 @@
exa: Unknown argument --aoeu

View File

@ -0,0 +1 @@
exa: Option --tree is useless given --all --all