mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-05 20:58:51 +01:00
test: Add test to ensure ripgrep works
This is intended to make debugging CI issues easier in the future.
This commit is contained in:
parent
428a78837d
commit
76906ca014
@ -124,3 +124,13 @@ test:output_without_separator() {
|
||||
|
||||
batgrep "ca" file.txt --no-separator --color=always
|
||||
}
|
||||
|
||||
test:sanity_rg_works() {
|
||||
description "Ensure the ripgrep executable works"
|
||||
|
||||
require_rg
|
||||
|
||||
rg --version
|
||||
rg "ca" file.txt | grep "ca" || fail "Ripgrep executable not working."
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user