Commit Graph

195 Commits (b6e729abeb37306d70d791d79dcb4bcf03c2c299)

Author SHA1 Message Date
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
Lzu Tao e37e9c1214 Fix some clippy lints
Some might actually improve perf
4 years ago
sharkdp 26c951fec4 Fix warnings, sort imports, input from string 4 years ago
sharkdp 5449472f15 Remove invalid UTF-8 file from repo, use temp file instead 4 years ago
sharkdp 82e20bfe14 Fix bug for file with invalid-utf8 filenames 4 years ago
sharkdp 03c2281828 Add do-not-panic! regression tests 4 years ago
sharkdp edd27645d0 Add a way to directly search for a pattern 4 years ago
sharkdp fc6f4f31dd Add documentation 4 years ago
sharkdp f2cef702a0 Add script to find slow-to-highlight files 4 years ago
David Tolnay 570805bc98 Strip dependencies of bat-as-a-library 5 years ago
Kyle Criddle 38178fedf4 Merge branch 'master' into fix_654_stdin_filename 5 years ago
Kyle Criddle 59f2e2d58d Implemented --file-name for multiple files + tests 5 years ago
sharkdp 2c2861db6a Further simplify module structure 5 years ago
sharkdp 8c500a7e40 Hide get_syntax, move tests to module 5 years ago
sharkdp 62f2d0c100 Do not export syntax_set and theme_set 5 years ago
sharkdp 06b7be7ee9 Major restructuring of theme/syntax handling 5 years ago
Kyle Criddle cfa2cb6ec7 --file-name for normal files. integration tests. 5 years ago
sharkdp b611d2aef4 Add no-duplicate-extensions unit test 5 years ago
sharkdp 1bc62cd7b5 Add syntax detection unit 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
Ethan P 21821f1d4c Updated snapshot tests 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
Daniele Esposti a21ae614e6 Migrated to Rust 2018 6 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 a3182e68e4 Update .gitattributes 6 years ago
sharkdp 14e6b41a5f Add .gitattributes 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 cbed338c3a Remove generation code for tabs_ tests 6 years ago
sharkdp d96ee2261f Remove tab-related text 6 years ago
sharkdp 496e0bc046 Allow for multiple line ranges
See #23
6 years ago
sharkdp f7d9f49503 Remove leftovers from tab-tests 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
sharkdp e09d7dabb8 Move snapshot tests into separate module 6 years ago
sharkdp 1be346a038 Add 'plain' version of bat to the benchmarks 6 years ago
sharkdp 80da0dc619 run cargo fmt 6 years ago
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