mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 12:24:17 +00:00
Add integration test.
This commit is contained in:
parent
ed6aad7835
commit
10fd0b70e5
@ -748,6 +748,17 @@ fn env_var_bat_pager_value_bat() {
|
|||||||
.stderr(predicate::str::contains("bat as a pager is disallowed"));
|
.stderr(predicate::str::contains("bat as a pager is disallowed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn bat_error_to_stderr() {
|
||||||
|
bat()
|
||||||
|
.env("BAT_PAGER", "bat")
|
||||||
|
.arg("/tmp")
|
||||||
|
.assert()
|
||||||
|
.failure()
|
||||||
|
.stderr(predicate::str::contains("[bat error]"));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn pager_value_bat() {
|
fn pager_value_bat() {
|
||||||
bat()
|
bat()
|
||||||
@ -1194,6 +1205,10 @@ fn can_print_file_starting_with_cache() {
|
|||||||
.stderr("");
|
.stderr("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn send_all_bat_error_to_stderr() {
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn does_not_print_unwanted_file_named_cache() {
|
fn does_not_print_unwanted_file_named_cache() {
|
||||||
bat_with_config().arg("cach").assert().failure();
|
bat_with_config().arg("cach").assert().failure();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user