Commit Graph

65 Commits

Author SHA1 Message Date
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
a21ae614e6 Migrated to Rust 2018 2019-03-09 07:43:41 +01:00
fa3244f7c1 Add test for UTF-16LE encoding 2019-02-10 10:18:07 +01:00
906774e6d3 Integration tests for single-line files 2019-02-10 10:18:07 +01:00
cec9cc073c Add integration tests running bat with empty input files. 2019-02-08 23:30:33 +01:00
a3182e68e4 Update .gitattributes 2018-11-12 21:49:19 +01:00
14e6b41a5f Add .gitattributes 2018-11-11 14:49:24 +01:00
c6a526f99c Run 'cargo run' only once 2018-11-04 12:24:56 +01:00
278d841408 Move '--paging' arg to config file. 2018-11-04 11:19:49 +01:00
5f576f1ecf Remove all relevant environment variables during testing 2018-11-04 11:19:49 +01:00
48c6ea6b25 Simplify integration test setup 2018-11-04 11:19:49 +01:00
558134f6c8 Changed to unwrap methods, added integration tests 2018-11-04 11:19:49 +01:00
cbed338c3a Remove generation code for tabs_ tests 2018-11-01 15:30:58 +01:00
d96ee2261f Remove tab-related text 2018-11-01 15:30:58 +01:00
496e0bc046 Allow for multiple line ranges
See #23
2018-10-20 10:44:13 +02:00
f7d9f49503 Remove leftovers from tab-tests 2018-10-19 21:57:35 +02:00
88fcfd76aa cargo fmt 2018-10-19 21:04:46 +02:00
76e34b29ec Avoid empty line in snapshot 2018-10-19 21:04:46 +02:00
01984e1d02 Test 'tabs' with 'numbers' 2018-10-19 21:04:46 +02:00
536390509f remove --wrap for now 2018-10-19 21:04:46 +02:00
58198d0700 rewrite 6 snapshot tests as integration test 2018-10-19 21:04:46 +02:00
afc5aacb28 Move tabs_* snapshot tests to integration_tests 2018-10-19 21:04:46 +02:00
2c7087b8de Add integration tests for pager handling 2018-10-17 21:08:32 +02:00
495e7fd3b1 Add --no-config option 2018-10-16 22:09:15 +02:00
278bde5cee Continue with output after "is directory"-error 2018-10-11 21:54:19 +02:00
1891e194b5 Add simple integration tests 2018-10-11 07:06:13 +02:00
e09d7dabb8 Move snapshot tests into separate module 2018-10-07 15:34:37 +02:00
1be346a038 Add 'plain' version of bat to the benchmarks 2018-10-07 10:57:08 +02:00
80da0dc619 run cargo fmt 2018-09-26 19:16:03 +02:00
a05494e9d9 Make tests more robust 2018-09-12 20:32:49 +02:00
84ac92efbb Fix test for --style=plain 2018-09-12 20:32:33 +02:00
b4c6e412dc Make generate_snapshots script more robust 2018-09-12 20:28:42 +02:00
3e21d69a92 Re-generate files again 2018-09-12 20:28:30 +02:00
b7690d4bb1 Undo change in sample.modified.rs 2018-09-12 20:28:21 +02:00
9ef1e9f792 Update snapshots. 2018-09-11 15:04:44 -07:00
503fe0b641 Fix sample.modified.rs 2018-09-11 15:03:13 -07:00
c1e1f753cf Added three new snapshot tests for --tabs and --wrap. 2018-09-11 13:47:01 -07:00
7cdcdbb31d Updated snapshots. 2018-09-10 19:20:09 -07:00
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
a6ff3b900d Fix terminal width to 80 characters in tests 2018-08-31 23:57:27 +02:00
0b1535f63b Split snapshot tests into individual tests 2018-08-31 23:57:27 +02:00
0a5b3eaf3e Re-enable tests on windows 2018-08-31 23:57:27 +02:00
35a1236ad0 Update tests.rs 2018-08-31 23:57:27 +02:00
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
5b421b455d Update dependencies 2018-08-18 20:44:25 +02:00
c91511cca1 Always run snapshot test 2018-06-02 19:03:38 +02:00
c9f7a0c126 Use separate Git repository for snapshot testing
closes #161
2018-06-02 19:00:05 +02:00
86c1777205 Skip snapshot test if Git is not available
closes #161
2018-06-01 00:33:39 +02:00
26d409db65 Add 'rouge' to list of alternatives 2018-05-30 19:24:30 +02:00
06cd4b2ce8 Add 'coderay' to list of alternatives 2018-05-30 19:16:08 +02:00