Commit Graph

536 Commits (master)

Author SHA1 Message Date
sharkdp a05494e9d9 Make tests more robust 6 years ago
sharkdp 84ac92efbb Fix test for --style=plain 6 years ago
sharkdp b4c6e412dc Make generate_snapshots script more robust 6 years ago
sharkdp 3e21d69a92 Re-generate files again 6 years ago
sharkdp b7690d4bb1 Undo change in sample.modified.rs 6 years ago
eth-p 9ef1e9f792
Update snapshots. 6 years ago
eth-p 503fe0b641
Fix sample.modified.rs 6 years ago
eth-p c1e1f753cf
Added three new snapshot tests for --tabs and --wrap. 6 years ago
eth-p 7cdcdbb31d
Updated snapshots. 6 years ago
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.
6 years ago
sharkdp a6ff3b900d Fix terminal width to 80 characters in tests 6 years ago
sharkdp 0b1535f63b Split snapshot tests into individual tests 6 years ago
sharkdp 0a5b3eaf3e Re-enable tests on windows 6 years ago
anykao 35a1236ad0 Update tests.rs 6 years ago
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
6 years ago
sharkdp 5b421b455d Update dependencies 6 years ago
sharkdp c91511cca1 Always run snapshot test 6 years ago
sharkdp c9f7a0c126 Use separate Git repository for snapshot testing
closes #161
6 years ago
sharkdp 86c1777205 Skip snapshot test if Git is not available
closes #161
6 years ago
sharkdp 26d409db65 Add 'rouge' to list of alternatives 6 years ago
sharkdp 06cd4b2ce8 Add 'coderay' to list of alternatives 6 years ago
sharkdp 39e2971e96 Add .ignore files to avoid searching asset folders 6 years ago
Ezinwa Okpoechi 2ce8655167 Build bat before generating snapshots 6 years ago
Ezinwa Okpoechi a452467e06 Remove unnecessary space if there are no decorations 6 years ago
Ezinwa Okpoechi 2ea3758c4b Justify header when there are decorations but no grid 6 years ago
sharkdp 556149ad3a Add comparison benchmark 6 years ago
Ezinwa Okpoechi 882931a77b Update snapshots 6 years ago
Ezinwa Okpoechi d0782ef954 Add line with invalid UTF-8 6 years ago
David Peter 2eee68599d
Merge pull request #102 from eth-p/master
Added text wrapping. (Fixes #54)
6 years ago
eth-p d569693dab Formatted with newer cargo fmt.
It should pass all the checks now.
6 years ago
sharkdp 54b33c8c21 Add simple benchmark scripts 6 years ago
sharkdp 15b9acd12f Updates for new rustfmt 6 years ago
eth-p 9f005d115d
Update snapshot test files. 6 years ago
Ezinwa Okpoechi 0886a24685 Add snapshot testing 6 years ago
Ezinwa Okpoechi 53eb9c57d6 Add generated snapshots 6 years ago
Ezinwa Okpoechi 026a9ebae3 Add sample files and snapshot generator 6 years ago