diff options
author | Martin Nordholts <enselic@gmail.com> | 2021-08-07 12:13:12 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2021-08-07 20:07:46 +0200 |
commit | bd797c75a4016f7866f2971cc7ebd79fbf7107a4 (patch) | |
tree | e69ef8b6c2619bc41226355a587070e4132e6dd1 | |
parent | 05c11964fc13b039f3797a8161aac642e3be30c7 (diff) |
integration_tests: Add diagnostic_sanity_check()
-rw-r--r-- | tests/integration_tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index f09765b0..d2c8501f 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -701,6 +701,16 @@ fn pager_failed_to_parse() { } #[test] +fn diagnostic_sanity_check() { + bat() + .arg("--diagnostic") + .assert() + .success() + .stdout(predicate::str::contains("BAT_PAGER=")) + .stderr(""); +} + +#[test] fn config_location_test() { bat_with_config() .env("BAT_CONFIG_PATH", "bat.conf") |