Commit graph

246 commits

Author SHA1 Message Date
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
sharkdp
5b421b455d Update dependencies 2018-08-18 20:44:25 +02:00
sharkdp
c91511cca1 Always run snapshot test 2018-06-02 19:03:38 +02:00
sharkdp
c9f7a0c126 Use separate Git repository for snapshot testing
closes #161
2018-06-02 19:00:05 +02:00
sharkdp
86c1777205 Skip snapshot test if Git is not available
closes #161
2018-06-01 00:33:39 +02:00
sharkdp
26d409db65 Add 'rouge' to list of alternatives 2018-05-30 19:24:30 +02:00
sharkdp
06cd4b2ce8 Add 'coderay' to list of alternatives 2018-05-30 19:16:08 +02:00
sharkdp
39e2971e96 Add .ignore files to avoid searching asset folders 2018-05-25 17:44:50 +02:00
Ezinwa Okpoechi
2ce8655167 Build bat before generating snapshots 2018-05-24 19:10:24 +02:00
Ezinwa Okpoechi
a452467e06 Remove unnecessary space if there are no decorations 2018-05-24 19:10:24 +02:00
Ezinwa Okpoechi
2ea3758c4b Justify header when there are decorations but no grid 2018-05-24 19:10:24 +02:00
sharkdp
556149ad3a Add comparison benchmark 2018-05-22 23:32:46 +02:00
Ezinwa Okpoechi
882931a77b Update snapshots 2018-05-18 16:44:34 +02:00
Ezinwa Okpoechi
d0782ef954 Add line with invalid UTF-8 2018-05-18 16:44:34 +02:00
David Peter
2eee68599d
Merge pull request #102 from eth-p/master
Added text wrapping. (Fixes #54)
2018-05-16 08:41:49 +02:00
eth-p
d569693dab Formatted with newer cargo fmt.
It should pass all the checks now.
2018-05-16 08:29:41 +02:00
sharkdp
54b33c8c21 Add simple benchmark scripts 2018-05-14 22:20:26 +02:00
sharkdp
15b9acd12f Updates for new rustfmt 2018-05-14 19:04:13 +02:00
eth-p
9f005d115d
Update snapshot test files. 2018-05-12 14:04:54 -07:00
Ezinwa Okpoechi
0886a24685 Add snapshot testing 2018-05-12 18:07:30 +02:00
Ezinwa Okpoechi
53eb9c57d6 Add generated snapshots 2018-05-12 18:07:30 +02:00
Ezinwa Okpoechi
026a9ebae3 Add sample files and snapshot generator 2018-05-12 18:07:30 +02:00