Commit Graph

71 Commits

Author SHA1 Message Date
Ethan P
2dac1c8785 Add @sharkdp's regression test for #798 2020-02-28 07:56:24 +01:00
sharkdp
f5d359927a Fix 'bat cache other-arg', closes #666 2019-09-21 09:10:12 +02:00
sharkdp
2e71146801 Fix another instance of the 'bat cache' bug, closes #584 2019-08-31 14:13:36 +02:00
sharkdp
f3824bad17 Add explicit terminal width for test 2019-08-31 13:46:48 +02:00
sharkdp
3a75d85b80 Add test for 'snip' feature 2019-08-31 13:46:48 +02:00
Ethan P
21821f1d4c Updated snapshot tests 2019-07-26 06:51:33 +02:00
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
2019-05-10 17:55:46 -05:00
Daniele Esposti
a21ae614e6 Migrated to Rust 2018 2019-03-09 07:43:41 +01:00
sharkdp
fa3244f7c1 Add test for UTF-16LE encoding 2019-02-10 10:18:07 +01:00
sharkdp
906774e6d3 Integration tests for single-line files 2019-02-10 10:18:07 +01:00
Reid Wagner
cec9cc073c Add integration tests running bat with empty input files. 2019-02-08 23:30:33 +01:00
sharkdp
a3182e68e4 Update .gitattributes 2018-11-12 21:49:19 +01:00
sharkdp
14e6b41a5f Add .gitattributes 2018-11-11 14:49:24 +01:00
sharkdp
c6a526f99c Run 'cargo run' only once 2018-11-04 12:24:56 +01:00
sharkdp
278d841408 Move '--paging' arg to config file. 2018-11-04 11:19:49 +01:00
sharkdp
5f576f1ecf Remove all relevant environment variables during testing 2018-11-04 11:19:49 +01:00
sharkdp
48c6ea6b25 Simplify integration test setup 2018-11-04 11:19:49 +01:00
Ricky
558134f6c8 Changed to unwrap methods, added integration tests 2018-11-04 11:19:49 +01:00
sharkdp
cbed338c3a Remove generation code for tabs_ tests 2018-11-01 15:30:58 +01:00
sharkdp
d96ee2261f Remove tab-related text 2018-11-01 15:30:58 +01:00
sharkdp
496e0bc046 Allow for multiple line ranges
See #23
2018-10-20 10:44:13 +02:00
sharkdp
f7d9f49503 Remove leftovers from tab-tests 2018-10-19 21:57:35 +02:00
Lawrence Chou
88fcfd76aa cargo fmt 2018-10-19 21:04:46 +02:00
Lawrence Chou
76e34b29ec Avoid empty line in snapshot 2018-10-19 21:04:46 +02:00
Lawrence Chou
01984e1d02 Test 'tabs' with 'numbers' 2018-10-19 21:04:46 +02:00
Lawrence Chou
536390509f remove --wrap for now 2018-10-19 21:04:46 +02:00
Lawrence Chou
58198d0700 rewrite 6 snapshot tests as integration test 2018-10-19 21:04:46 +02:00
Lawrence Chou
afc5aacb28 Move tabs_* snapshot tests to integration_tests 2018-10-19 21:04:46 +02:00
sharkdp
2c7087b8de Add integration tests for pager handling 2018-10-17 21:08:32 +02:00
sharkdp
495e7fd3b1 Add --no-config option 2018-10-16 22:09:15 +02:00
sharkdp
278bde5cee Continue with output after "is directory"-error 2018-10-11 21:54:19 +02:00
sharkdp
1891e194b5 Add simple integration tests 2018-10-11 07:06:13 +02:00
sharkdp
e09d7dabb8 Move snapshot tests into separate module 2018-10-07 15:34:37 +02:00
sharkdp
1be346a038 Add 'plain' version of bat to the benchmarks 2018-10-07 10:57:08 +02:00
sharkdp
80da0dc619 run cargo fmt 2018-09-26 19:16:03 +02:00
sharkdp
a05494e9d9 Make tests more robust 2018-09-12 20:32:49 +02:00
sharkdp
84ac92efbb Fix test for --style=plain 2018-09-12 20:32:33 +02:00
sharkdp
b4c6e412dc Make generate_snapshots script more robust 2018-09-12 20:28:42 +02:00
sharkdp
3e21d69a92 Re-generate files again 2018-09-12 20:28:30 +02:00
sharkdp
b7690d4bb1 Undo change in sample.modified.rs 2018-09-12 20:28:21 +02:00
eth-p
9ef1e9f792
Update snapshots. 2018-09-11 15:04:44 -07:00
eth-p
503fe0b641
Fix sample.modified.rs 2018-09-11 15:03:13 -07:00
eth-p
c1e1f753cf
Added three new snapshot tests for --tabs and --wrap. 2018-09-11 13:47:01 -07:00
eth-p
7cdcdbb31d
Updated snapshots. 2018-09-10 19:20:09 -07:00
eth-p
9159341714
Modified snapshot tests to support tab expansion.
This changes how the files are named (to allow for snapshots that aren't
directly related to the --style argument) and fixes the
generate_snapshots.py script to work with the latest version of bat.

Three new tests are also introduced:
- tabs_4 - Tab expansion with a width of 4.
- tabs_8 - Tab expansion with a width of 8.
- tabs_passthrough - No tab expansion.
2018-09-10 19:19:43 -07:00
sharkdp
a6ff3b900d Fix terminal width to 80 characters in tests 2018-08-31 23:57:27 +02:00
sharkdp
0b1535f63b Split snapshot tests into individual tests 2018-08-31 23:57:27 +02:00
sharkdp
0a5b3eaf3e Re-enable tests on windows 2018-08-31 23:57:27 +02:00
anykao
35a1236ad0 Update tests.rs 2018-08-31 23:57:27 +02:00
sharkdp
226d9a573a Add simple loop-through mode
Use a loop-through mode that simply copies input to output if a
non-interactive terminal is detected.

see #150
2018-08-23 23:13:24 +02:00