2
0
mirror of https://github.com/sharkdp/bat synced 2024-11-08 19:10:41 +00:00
Commit Graph

538 Commits

Author SHA1 Message Date
Zachary J. Rollyson
3c756a65a6 feat: add syntax tests for sass 2020-10-17 16:41:11 +02:00
Matthieu Vion
8d574826c9 Added reStructuredText reference for syntax tests 2020-10-16 19:03:20 +02:00
Matthieu Vion
7c7eebbe83 Changed Makefile syntax test source
Now using Makefile from the Redis project
2020-10-16 14:22:59 +02:00
Matthieu Vion
57ad85814b Added Makefile to syntax tests
Make progress in #1213
2020-10-16 14:22:59 +02:00
Benjamin Sinkula
4b2b419400 Add Common Lisp syntax highlighting test files 2020-10-16 08:58:04 +02:00
Celeo
b83716f0eb feat: add Nim syntax test file 2020-10-16 08:56:36 +02:00
sharkdp
4d6b2fec13 Add PureScript syntax test 2020-10-14 08:43:11 +02:00
Benjamin Sinkula
5650624822 Add ActionScript 3 syntax test 2020-10-14 08:07:20 +02:00
Saul Blanco Tejero
bf07b0be58 Add Perl test file 2020-10-14 07:45:42 +02:00
Sebastian Andersson
eeea53759b Add apache httpd.conf example 2020-10-14 07:43:38 +02:00
okezieuc
a39f1e0f9b added new syntax highlighting files
I added a sample etc/hosts file and a sample requirements.txt file. I didn't know there was already a sample YAML file because it wasn't ticked in the issue so I added some extra syntax that I had in my own to the previous  example.yaml file.
2020-10-14 07:41:13 +02:00
Tom Milligan
1614f80366
add integration test for grid overriding rule 2020-10-12 09:04:57 +01:00
Tom Milligan
c1af6ff2e6
Add integration test for style rule 2020-10-12 09:04:27 +01:00
Tom Milligan
aa4000cb0d
style: add component 'rule' for horizontal file delimiter 2020-10-12 09:04:27 +01:00
sharkdp
33128d75f2 Use list.extend(…) 2020-10-11 22:18:14 +02:00
sharkdp
bf87f37039 Better ask forgiveness than permission 2020-10-11 22:18:14 +02:00
sharkdp
62e715ff5b Formatting 2020-10-11 22:18:14 +02:00
Logan Saso
de47bd2323 Added newline to multicharacter line of plaintext generation script 2020-10-11 21:31:34 +02:00
Logan Saso
19b55706ee Fixed file location in creation script 2020-10-11 21:31:34 +02:00
Logan Saso
6c68198d19 Updated creation script and README to match generation script 2020-10-11 21:31:34 +02:00
Logan Saso
f3c760c25f #1244 Use [].copy and path.exists instead of more cumbersome solutions
#1244 Slightly optimized create_highlighted_versions.py so that it won't walk the source path when it should be skipping the file

#1244 Updated README.md in plaintext source folder

#1244 Added extra option loading from `bat_options` file in directory and significantly reduced size of plaintext source

#1244 Updated create_highlighted_versions.py to ignore README.md files and use the --show-all option for manually-defined binary files

#1244 Updated plaintext file with command

bat -A --no-config --style=plain --color=always --theme='1337' --italic-text=always src/Plaintext/plaintext.txt > highlighted/Plaintext/plaintext.txt

#1244 Added example plaintext file
2020-10-11 21:31:34 +02:00
Ethan P
24fe946c06
Merge pull request #1308 from okezieuc/add-php-file
added php test file
2020-10-11 12:25:15 -07:00
Ethan P
a838ff47b5
Merge pull request #1307 from molcay/master
Add syntax tests for CpuInfo and MemInfo filetype
2020-10-11 11:58:59 -07:00
okezieuc
8bd078caeb updated the php commit
I reverted the commit and prevented the vue submodules from being affected
2020-10-11 19:58:53 +01:00
okezieuc
b7271a2a6d Revert "added php test file"
This reverts commit ecde418abb.
2020-10-11 19:53:36 +01:00
okezieuc
ecde418abb added php test file
I added a sample test.php file that covers a lot of python syntax
2020-10-11 18:48:29 +01:00
M. Olcay TERCANLI
51036ced9d Add MemInfo syntax test 2020-10-11 19:19:11 +03:00
M. Olcay TERCANLI
b6c1ec3a24 Add CpuInfo syntax test 2020-10-11 19:18:53 +03:00
Felipe Garcia
46004001cb Add Clojure syntax test. 2020-10-11 09:48:06 +02:00
Zachary J. Rollyson
f10c8ce25e Add GraphQl syntax test sample 2020-10-11 09:46:25 +02:00
grg121
457ab84065
Add basic Dockerfile syntax highlighting test files 2020-10-10 21:43:11 +02:00
Zachary J. Rollyson
3bcb5452aa Add HTML syntax test sample 2020-10-10 19:13:55 +02:00
venky
1f0e53a44d Added BibTeX syntax tests 2020-10-10 19:13:05 +02:00
Benjamin Neff
2d5cf1d3cf Remove gitattributes for .bat/.cmd files to make all testfiles eol=lf 2020-10-09 23:28:08 +02:00
sharkdp
a81254ed2a Fix line endings 2020-10-09 23:22:30 +02:00
Akshat Gadhwal
fdef133d3d Update test.swift 2020-10-09 23:22:30 +02:00
Akshat Gadhwal
fd01f0a0ee ADDED swift test file for syntax highlighting 2020-10-09 23:22:30 +02:00
sharkdp
5b095ed6f3 Fix line endings 2020-10-09 23:18:53 +02:00
Akshat Gadhwal
e7a3f34959 ADDED test file for R 2020-10-09 23:18:53 +02:00
Daniel Wolbach
06d0c8f056 add CMake syntax highlighting test 2020-10-09 22:50:47 +02:00
Jacky Hui
4064b8ff14 Added test file for Erlang. 2020-10-09 07:38:08 +02:00
Benjamin Neff
b6e729abeb Add Diff syntax highlight test 2020-10-08 12:50:09 +02:00
Filip Czaplicki
5fe98689d4 test: x86-64 Assembly NASM syntax test 2020-10-07 18:00:33 +02:00
Daniel Wolbach
8832a96e82 add GLSL syntax highlighting test 2020-10-07 17:58:33 +02:00
R1tschY
09631ed119 Add Batch syntax test 2020-10-07 07:41:42 +02:00
Spencer Williams
9257c7ce20 Regenerate using a fresh latest build of bat 2020-10-07 07:40:15 +02:00
Spencer Williams
b30f9a1677 Add sample Crystal file 2020-10-07 07:40:15 +02:00
Felipe Garcia
e6c3f96931 Add Groovy syntax test. 2020-10-07 07:38:52 +02:00
Felipe Garcia
85ff81f238 Add Lua syntax test. 2020-10-07 07:37:19 +02:00
Thiago Arrais
aa205c6a9f Add CSV syntax hightlighting test 2020-10-06 19:47:33 +02:00
scott.eppler
44bfad24a1 Add Terraform example file for Syntax Highlighting 2020-10-06 19:40:41 +02:00
Gede Wahyu
13e01841ca pascal: add syntax highlight file 2020-10-06 07:44:38 +02:00
sharkdp
a999975bc9 Add missing newline 2020-10-06 07:17:10 +02:00
Matthew Zegar
edf30e1fa1 Added missing highlighted generated test file 2020-10-06 07:17:10 +02:00
Matthew Zegar
f41bf2082a Added CSS syntax highlight file and folder 2020-10-06 07:17:10 +02:00
Ethan P
894d3f1722 Replace SCSS example with unlicensed one 2020-10-06 06:51:51 +02:00
Ethan P
83d96e2bbb Rename SASS tests to SCSS, since they're using SCSS syntax 2020-10-06 06:51:51 +02:00
Ethan P
e26ec31463
Add option to specify exact binary in run-benchmarks.sh 2020-10-05 15:47:28 -07:00
Ethan P
e3bc41dbe6
Add option to specify bat target in run-benchmarks.sh 2020-10-05 15:47:22 -07:00
uabua
7a180e22ff Add SQL syntax highlighting test 2020-10-05 23:39:01 +02:00
scott.eppler
e85064e4cf Fix mismatch between syntax-test and hightlighted
I needed to re-run `update.sh` script one last time.
2020-10-05 22:03:27 +02:00
scott.eppler
dd95f8b5cb Add example file for YAML highlighting
Relates to #1213
2020-10-05 22:03:27 +02:00
Niklas Sombert
975487f630 Add syntax highlighting test file for INI (#1213) 2020-10-05 21:09:24 +02:00
Akshat Gadhwal
c92ac809a5 added test.dart 2020-10-05 18:53:35 +02:00
DanielVip3
ec842e8d51 Added a JavaScript test file 2020-10-05 17:26:13 +02:00
henil
6d6e3900c3 add LICENSE 2020-10-05 17:25:37 +02:00
henil
0516a0d7a6 add .gitignore test 2020-10-05 17:25:37 +02:00
henil
adbbe158db forgot to update highlighted file after changing 2020-10-05 14:24:16 +02:00
henil
6d2be4a305 License attribution not required 2020-10-05 14:24:16 +02:00
henil
78c9a5d45b add julia test file 2020-10-05 14:24:16 +02:00
Mithil Poojary
5fa1645165 Add Java file test 2020-10-05 13:56:43 +02:00
sharkdp
bbf6ec0458 Try to fix syntax-detection tests on Windows 2020-10-05 09:07:57 +02:00
Mithil Poojary
e58b20f68d Add C file test 2020-10-05 09:06:47 +02:00
Logan Saso
0ce697daba #1241 Added newline to end of example.xml 2020-10-05 09:02:56 +02:00
Logan Saso
a2dfadc6c8 #1213 Added example xml file 2020-10-05 09:02:56 +02:00
Mithil Poojary
6df8b3fe72 Print error message if bat not found on path 2020-10-05 09:01:46 +02:00
Mithil Poojary
b623adc6df Add Cpp file test 2020-10-05 09:01:34 +02:00
Matthias Reitinger
2f77da7813 Add /etc/passwd syntax test file 2020-10-05 07:22:54 +02:00
Jonatas
9897c99190 Haskell highligth test 2020-10-05 07:20:00 +02:00
Giorgi Beriashvili
aebc30447f Add TeX syntax highlighting test files 2020-10-05 07:19:07 +02:00
Giorgi Beriashvili
d2bae54ed0 Add C-Sharp (C#) syntax highlighting test files 2020-10-05 07:15:09 +02:00
Logan Saso
501c369f39 #1213 Added example Markdown file 2020-10-05 07:14:09 +02:00
Filip Czaplicki
db3468a815 test: ARM Assembly syntax test file 2020-10-05 07:12:24 +02:00
Filip Czaplicki
3aabed44ce test: Kotlin syntax test file 2020-10-05 07:11:52 +02:00
Ethan P
3af7a6b082
Merge pull request #1226 from mdevlamynck/fix-scripts
Shell script improvements
2020-10-04 13:49:50 -07:00
Daniil Baturin
2e985198c6 Add a protobuf syntax sample. 2020-10-04 21:32:09 +02:00
Celeo
74a2ef8138 test: add Jinja2 syntax test file 2020-10-04 21:31:19 +02:00
Daniil Baturin
88ea21b276 Add an SML syntax test file. 2020-10-04 21:25:05 +02:00
Michael
62397dbd0b test: add newline to JSON syntax source file 2020-10-04 21:22:57 +02:00
Michael
317b086f66 test: add json highlight test 2020-10-04 21:22:57 +02:00
Matthias Devlamynck
12340c1d10 Add change dir to script dir to allow running from project root dir 2020-10-04 19:35:32 +02:00
parksb
e747199711 Generate highlighted file on latest version 2020-10-04 15:25:39 +02:00
parksb
df7ce883c7 Add texts indicating source to LICENSE.md 2020-10-04 15:25:39 +02:00
parksb
eb3e2dca24 Add basic typescript test file 2020-10-04 15:25:39 +02:00
Michael
2d9b936b0a test: add asciidoc highlight test 2020-10-04 15:23:49 +02:00
Matthias Devlamynck
66c7aca2f6 Add elm syntax regression test 2020-10-04 15:19:54 +02:00
Nick Anthony Flueckiger
0c3344d0c4 Add a ruby source code syntax test with source and output 2020-10-04 15:15:34 +02:00
Quang Le
5d490664ca fix: update original file in license 2020-10-04 13:26:05 +02:00
Quang Le
d170dd305d Add scala code highlight test 2020-10-04 13:26:05 +02:00
Matthias Devlamynck
b50bd58795 Replace #!/bin/bash with #!/usr/bin/env bash to improve compatibility with systems where /bin/bash is not available 2020-10-04 11:51:07 +02:00
David Peter
1da279a290 Add link to original source 2020-10-04 11:25:11 +02:00
Quang Le
100b9a470b test: add go highlight test 2020-10-04 11:25:11 +02:00
Daniil Baturin
43c2b36eaa Make tests/syntax-tests/update.sh shell script executable. 2020-10-04 11:17:23 +02:00
Daniil Baturin
203d0bd8ae Add an OCaml file for syntax tests. 2020-10-04 11:16:15 +02:00
Ethan P
96151c44aa Add a batgrep as Bash script syntax tests 2020-10-04 11:00:57 +02:00
Ethan P
02dcb01120 Add a simple Bash script for syntax tests 2020-10-04 11:00:57 +02:00
Ethan P
51d25e5859 Fix syntax highlighting test update.sh to work on Mac OS 2020-10-04 11:00:57 +02:00
José Eduardo
29b6ba0758 Added Elixir file example 2020-10-03 22:33:44 +02:00
adgai19
ca5793dbea Added Basic python test file 2020-10-03 22:32:59 +02:00
sharkdp
1ecb70e082 Update email syntax output 2020-10-01 22:58:30 +02:00
sharkdp
9eed16beb4 Add Email example code 2020-10-01 22:58:30 +02:00
sharkdp
5efc0033a1 Add updated, highlighted output 2020-09-30 19:50:19 +02:00
sharkdp
c9237cccab Add AWK file for syntax tests 2020-09-30 19:50:19 +02:00
sharkdp
89b62d579f Add update script 2020-09-20 21:43:18 +02:00
sharkdp
436a16aba6 Add syntax test for /etc/fstab 2020-09-20 21:43:18 +02:00
sharkdp
71b2089384 Code formatting 2020-09-20 20:47:21 +02:00
sharkdp
c3f85c8372 Add Less file for syntax tests 2020-09-07 22:25:14 +02:00
sharkdp
7f5d6d9791 Add SASS file for syntax tests 2020-09-07 22:25:14 +02:00
sharkdp
cbe68ba84c Make sure that environment is properly set up 2020-08-03 15:59:53 +02:00
sharkdp
4b012de7db Make test script executable 2020-08-03 15:59:53 +02:00
sharkdp
02a89d8ee8 Add comparison script 2020-08-03 15:59:53 +02:00
sharkdp
a70efae79b Add proper CLI 2020-08-03 15:59:53 +02:00
sharkdp
78a681f027 Initial version of syntax regression tests 2020-08-03 15:59:53 +02:00
sharkdp
2ffbe08eb1 Add base16-256 theme to unit test 2020-08-03 11:39:49 +02:00
Dash Peters
6faf61552e Fix integration test 2020-07-09 08:15:04 +02:00
Dash Peters
f53ea60ed4 Merge remote-tracking branch 'sharkdp/master' 2020-07-02 00:04:55 -07:00
David Peter
3a62e3d188
Merge pull request #1066 from gsomix/feature/1061-show-all-redirected
Enable non-printable characters for redirected output
2020-07-02 08:21:50 +02:00
Evgeniy Andreev (gsomix)
3c5ce9f86c Enable non-printable chars for redirected output (#1061) 2020-07-02 09:36:58 +04:00
David Peter
2461d22212 Add new themes to unit test
Branch: add_gruvbox_theme
2020-07-02 07:17:57 +02:00
Dash Peters
bfac6fd85c Add integration tests 2020-06-30 12:41:50 -07:00
Caio Alonso
fc121f0c87 Defaults *.fs to F# 2020-06-26 21:42:05 -03:00
Roy Ivy III
92e93682c6 Revert f8ed8aa7 (add test instrumentation to help understand failing tests) per PR feedback/owner request
- reverts commit f8ed8aa74b
2020-06-03 09:13:47 +02:00
Roy Ivy III
4840c7cd78 Tests ~ add predicate normalization for tests using echo 2020-06-03 09:13:47 +02:00
Roy Ivy III
71ab4a2058 Tests ~ revert to echo (after fixed 'windows' pager process execution) 2020-06-03 09:13:47 +02:00
Roy Ivy III
0ef792ac1e Tests ~ (fix) always check out test fixtures with known LF line endings
- fixes windows test failures
- avoids `git` platform-dependent conversion of line endings for checkout of test fixtures (*tests/examples/...*)
2020-06-03 09:13:47 +02:00
Roy Ivy III
01af28b781 Tests ~ add instrumentation to visualize text differences in failing tests 2020-06-03 09:13:47 +02:00
Roy Ivy III
3a7743ffc5 Tests ~ echo has portability issues; for CI, replace with printf
- using `echo` on 'windows' platforms requires process execution indirectly via the shell
- `printf` is available on all GHA CI platforms
  - `printf` is *not* available on usual 'windows' platforms; so this is just temporizing, awaiting a true fix
2020-06-03 09:13:47 +02:00
sharkdp
9cb43ef64d Update tests 2020-05-27 10:09:57 +02:00
sharkdp
2ab6474761 Add unit test to make sure we are not missing any themes 2020-05-27 09:50:22 +02:00
sharkdp
d84ac09abd Update .gitattributes 2020-05-26 12:14:27 +02:00
Ethan P
b8687bc969
Merge branch 'master' of github.com:sharkdp/bat into string-input 2020-05-15 13:22:24 -07:00
Ethan P
9166c9dd35
Remove unnecessary clone in integration tests 2020-05-15 12:29:01 -07:00
Ethan P
82981c9663
Add regression test for detected syntax differing for stdin and files 2020-05-13 02:53:19 -07:00
Prat T
b3373398e8 Remove padding if the header style is not enabled 2020-05-12 16:37:29 +02:00
Prat T
0040fef215 Add padding above headers when no grid 2020-05-12 16:37:29 +02:00
Lzu Tao
e37e9c1214 Fix some clippy lints
Some might actually improve perf
2020-04-24 16:11:05 +02:00
sharkdp
26c951fec4 Fix warnings, sort imports, input from string 2020-04-22 23:55:28 +02:00
sharkdp
5449472f15 Remove invalid UTF-8 file from repo, use temp file instead 2020-04-21 16:02:28 +02:00
sharkdp
82e20bfe14 Fix bug for file with invalid-utf8 filenames 2020-04-21 14:09:18 +02:00
sharkdp
03c2281828 Add do-not-panic! regression tests 2020-04-21 11:50:26 +02:00
sharkdp
edd27645d0 Add a way to directly search for a pattern 2020-04-12 19:19:33 +02:00
sharkdp
fc6f4f31dd Add documentation 2020-04-12 19:19:33 +02:00
sharkdp
f2cef702a0 Add script to find slow-to-highlight files 2020-04-12 19:19:33 +02:00
David Tolnay
570805bc98 Strip dependencies of bat-as-a-library 2020-03-31 09:27:56 +02:00
Kyle Criddle
38178fedf4 Merge branch 'master' into fix_654_stdin_filename 2020-03-24 19:08:43 -06:00
Kyle Criddle
59f2e2d58d Implemented --file-name for multiple files + tests 2020-03-24 18:26:00 -06:00
sharkdp
2c2861db6a Further simplify module structure 2020-03-21 22:21:23 +01:00
sharkdp
8c500a7e40 Hide get_syntax, move tests to module 2020-03-21 22:21:23 +01:00
sharkdp
62f2d0c100 Do not export syntax_set and theme_set 2020-03-21 22:21:23 +01:00
sharkdp
06b7be7ee9 Major restructuring of theme/syntax handling 2020-03-21 19:19:15 +01:00
Kyle Criddle
cfa2cb6ec7 --file-name for normal files. integration tests. 2020-03-19 20:46:19 -06:00
sharkdp
b611d2aef4 Add no-duplicate-extensions unit test 2020-03-15 22:33:26 +01:00
sharkdp
1bc62cd7b5 Add syntax detection unit tests 2020-03-11 10:08:11 +01:00
sharkdp
b1183f72a5 Update to new assert_cmd 2020-03-09 21:30:46 +01:00
sharkdp
ca066bf7cd Run 'cargo fmt' 2020-02-28 10:27:06 +01:00
Kogia-sima
60f48a0c91 Update test data
Avoid using existing text
2020-02-28 09:06:51 +01:00
Kogia-sima
22ded00824 Add test for unicode wrapping 2020-02-28 09:06:51 +01:00
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
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