Martin Nordholts
a63bb08eda
Add test 'grid_for_file_without_newline' (for issue #299 fix)
...
This is a regression test for the fix for issue #299 . If that fix is
reverted, currently only one test ('header_padding') fails. But that
test is for a different use case, so add a dedicated regression test for
the particular use case issue #299 is about.
4 years ago
sharkdp
3e9afe2974
Add integration test for nonexisting newline
4 years ago
Martin Nordholts
986d0e9777
Ignore PAGER=most by default with a warning to stderr
...
closes #1063
4 years ago
sharkdp
bd2e9917da
Revert "Add cycle detection integration tests"
...
This reverts commit ec60d84265
.
4 years ago
Niklas Mohrin
4f0116bee7
Add cycle detection integration tests
4 years ago
Ethan P
61f947a580
Merge pull request #1276 from tommilligan/style-rule
...
style: add component 'rule' for horizontal file delimiter
4 years ago
Adrian Rivera
9837948c3a
Throws an error when `bat` is being user as pager.
...
As mentioned on #1334 `bat` should not be used as a value for `pager`,
this change checks both the balue of `bat` provided as a parameter or
as an environment variable.
4 years ago
Tom Milligan
1614f80366
add integration test for grid overriding rule
4 years ago
Tom Milligan
c1af6ff2e6
Add integration test for style rule
4 years ago
Tom Milligan
aa4000cb0d
style: add component 'rule' for horizontal file delimiter
4 years ago
sharkdp
71b2089384
Code formatting
4 years ago
Dash Peters
6faf61552e
Fix integration test
4 years ago
Dash Peters
f53ea60ed4
Merge remote-tracking branch 'sharkdp/master'
4 years ago
Evgeniy Andreev (gsomix)
3c5ce9f86c
Enable non-printable chars for redirected output ( #1061 )
4 years ago
Dash Peters
bfac6fd85c
Add integration tests
4 years ago
Roy Ivy III
92e93682c6
Revert f8ed8aa7
(add test instrumentation to help understand failing tests) per PR feedback/owner request
...
- reverts commit f8ed8aa74b
4 years ago
Roy Ivy III
4840c7cd78
Tests ~ add predicate normalization for tests using `echo`
4 years ago
Roy Ivy III
71ab4a2058
Tests ~ revert to `echo` (after fixed 'windows' pager process execution)
4 years ago
Roy Ivy III
01af28b781
Tests ~ add instrumentation to visualize text differences in failing tests
4 years ago
Roy Ivy III
3a7743ffc5
Tests ~ `echo` has portability issues; for CI, replace with `printf`
...
- using `echo` on 'windows' platforms requires process execution indirectly via the shell
- `printf` is available on all GHA CI platforms
- `printf` is *not* available on usual 'windows' platforms; so this is just temporizing, awaiting a true fix
4 years ago
Ethan P
b8687bc969
Merge branch 'master' of github.com:sharkdp/bat into string-input
4 years ago
Ethan P
9166c9dd35
Remove unnecessary clone in integration tests
4 years ago
Ethan P
82981c9663
Add regression test for detected syntax differing for stdin and files
4 years ago
Prat T
b3373398e8
Remove padding if the header style is not enabled
4 years ago
Prat T
0040fef215
Add padding above headers when no grid
4 years ago
sharkdp
5449472f15
Remove invalid UTF-8 file from repo, use temp file instead
5 years ago
sharkdp
82e20bfe14
Fix bug for file with invalid-utf8 filenames
5 years ago
sharkdp
03c2281828
Add do-not-panic! regression tests
5 years ago
Kyle Criddle
59f2e2d58d
Implemented --file-name for multiple files + tests
5 years ago
Kyle Criddle
cfa2cb6ec7
--file-name for normal files. integration tests.
5 years ago
sharkdp
b1183f72a5
Update to new assert_cmd
5 years ago
sharkdp
ca066bf7cd
Run 'cargo fmt'
5 years ago
Kogia-sima
60f48a0c91
Update test data
...
Avoid using existing text
5 years ago
Kogia-sima
22ded00824
Add test for unicode wrapping
5 years ago
Ethan P
2dac1c8785
Add @sharkdp's regression test for #798
5 years ago
sharkdp
f5d359927a
Fix 'bat cache other-arg', closes #666
5 years ago
sharkdp
2e71146801
Fix another instance of the 'bat cache' bug, closes #584
5 years ago
sharkdp
f3824bad17
Add explicit terminal width for test
5 years ago
sharkdp
3a75d85b80
Add test for 'snip' feature
5 years ago
sharkdp
72152296c7
Fix accidental printing of files named 'cache'
...
This also adds two regression tests, so this will hopefully not pop up
again.
closes #557
5 years ago
sharkdp
fa3244f7c1
Add test for UTF-16LE encoding
6 years ago
sharkdp
906774e6d3
Integration tests for single-line files
6 years ago
Reid Wagner
cec9cc073c
Add integration tests running bat with empty input files.
6 years ago
sharkdp
c6a526f99c
Run 'cargo run' only once
6 years ago
sharkdp
278d841408
Move '--paging' arg to config file.
6 years ago
sharkdp
5f576f1ecf
Remove all relevant environment variables during testing
6 years ago
sharkdp
48c6ea6b25
Simplify integration test setup
6 years ago
Ricky
558134f6c8
Changed to unwrap methods, added integration tests
6 years ago
sharkdp
496e0bc046
Allow for multiple line ranges
...
See #23
6 years ago
Lawrence Chou
88fcfd76aa
cargo fmt
6 years ago
Lawrence Chou
76e34b29ec
Avoid empty line in snapshot
6 years ago
Lawrence Chou
01984e1d02
Test 'tabs' with 'numbers'
6 years ago
Lawrence Chou
536390509f
remove --wrap for now
6 years ago
Lawrence Chou
58198d0700
rewrite 6 snapshot tests as integration test
6 years ago
Lawrence Chou
afc5aacb28
Move tabs_* snapshot tests to integration_tests
6 years ago
sharkdp
2c7087b8de
Add integration tests for pager handling
6 years ago
sharkdp
495e7fd3b1
Add --no-config option
6 years ago
sharkdp
278bde5cee
Continue with output after "is directory"-error
6 years ago
sharkdp
1891e194b5
Add simple integration tests
6 years ago