mirror of https://github.com/Llewellynvdm/exa.git
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:
parent
550f2d29c2
commit
b1c49341c0
|
@ -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
|
# Error suggestions
|
||||||
|
|
||||||
[[cmd]]
|
[[cmd]]
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
exa: Unknown argument --aoeu
|
|
@ -0,0 +1 @@
|
||||||
|
exa: Option --tree is useless given --all --all
|
Loading…
Reference in New Issue