mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-12-25 09:50:03 +00:00
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
|
||||
|
||||
[[cmd]]
|
||||
|
1
xtests/outputs/error_invalid_option.ansitxt
Normal file
1
xtests/outputs/error_invalid_option.ansitxt
Normal file
@ -0,0 +1 @@
|
||||
exa: Unknown argument --aoeu
|
1
xtests/outputs/error_tree_all_all.ansitxt
Normal file
1
xtests/outputs/error_tree_all_all.ansitxt
Normal file
@ -0,0 +1 @@
|
||||
exa: Option --tree is useless given --all --all
|
Loading…
Reference in New Issue
Block a user