mirror of
https://github.com/sharkdp/bat.git
synced 2025-04-14 23:00:37 +01:00
Add integration tests
This commit is contained in:
parent
2575aae945
commit
bfac6fd85c
@ -405,6 +405,29 @@ fn pager_disable() {
|
|||||||
.stdout(predicate::eq("hello world\n").normalize());
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn alias_pager_disable() {
|
||||||
|
bat()
|
||||||
|
.env("PAGER", "echo other-pager")
|
||||||
|
.arg("-P")
|
||||||
|
.arg("test.txt")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(predicate::eq("hello world\n").normalize());
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn alias_pager_disable_long_overrides_short() {
|
||||||
|
bat()
|
||||||
|
.env("PAGER", "echo pager-output")
|
||||||
|
.arg("-P")
|
||||||
|
.arg("--paging=always")
|
||||||
|
.arg("test.txt")
|
||||||
|
.assert()
|
||||||
|
.success()
|
||||||
|
.stdout(predicate::eq("pager-output\n").normalize());
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn config_location_test() {
|
fn config_location_test() {
|
||||||
bat_with_config()
|
bat_with_config()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user