summaryrefslogtreecommitdiffstats
path: root/src/tests/integration_test_utils.rs
AgeCommit message (Collapse)Author
2020-08-14Use native ansi-parsing utilities instead of console crateDan Davison
Fixes #262 console was great but it didn't support ANSI OSC sequences.
2020-07-15Refactor: unify test utility functionsDan Davison
2020-06-22Refactor: separate Opt construction from Config constructionDan Davison
2020-06-17Eliminate leading space unless --keep-plus-minus-markersDan Davison
2020-06-10Refactor: Config::from_argsDan Davison
2020-06-10Refactor testsDan Davison
2020-06-10Refactor: straighten out command line arguments processingDan Davison
2020-06-10Do not allow ArgMatches to be missingDan Davison
2020-06-10Change function signatureDan Davison
2020-06-10Make process_command_line_arguments accept a git config instanceDan Davison
2020-06-09Add --no-gitconfig optionDan Davison
2020-06-06Add failing test that --theme still worksDan Davison
2020-06-06Use 'syntax_theme' instead of 'theme' everywhereDan Davison
2020-06-03Pass clap ArgMatches to cli::process_command_line_argumentsDan Davison
2020-05-31Make decorations honor --width variableDan Davison
2020-05-23Clean up testsDan Davison
2020-05-23Use CLI defaults when constructing command line options for testsDan Davison
2020-05-23Implement --*-non-emph stylesDan Davison
Fixes #169
2020-05-22Implement hunk styles using style string argumentsDan Davison
- Do not apply foreground syntax style if it is "null syntect style" This isn't really correct. We should find either a valid sentinel value, or a way to only do the superimposing when we're doing syntax-highlighting. - Add --zero-style option (style for unchanged hunk lines) - Implement --color-only using an option rewrite rule
2020-05-22Introduce style strings to replace color optionsDan Davison
https://git-scm.com/docs/git-config#Documentation/git-config.txt-color - Support "syntax" pseudo foreground color - Delete the --syntax-highlight CLI option This was never released.
2020-05-20Refactor: consume options when creating configDan Davison
2020-05-17Add new command-line options controlling foreground colorsDan Davison
- Revert "Do not expose new foreground color options yet" This reverts commit 253bc3ac0fe34a8f08c2bf625fcc8bb78de01a4c. - Make test assertions for minus_foreground_color - Fix test: fix detection of foreground color - Add diagnostic output to hunk highlighting test - Disable syntax-highlighting if the user has set foreground colors - Eliminate redundant style modifiers in config - Revert fixed_foreground_style implementation The syntax_style_sections will just contain syntect styles, or else a dummy no-op style. All delta styles will be done in diff_style_sections. - Add more dimensions to grid in hunk highlighting test - Support "none" as a value for background colors - Set foreground colors in a way that's consistent with background colors - Bug fix: don't highlight when there is no theme
2020-05-16Do not expose new foreground color options yetDan Davison
2020-05-16Hunk highlighting test and refactoringDan Davison
- New command-line option --syntax highlight to select which category of hunk lines to be syntax highlighted. --highlight-removed is now deprecated. - New hunk highlighting test tests syntax highlighting and background colors - Refactor: construction of style modifiers for config struct - Refactor: compute minus and plus foreground style sections separately - Refactor: foreground style logic - Refactor: rearrange style modifier construction for config - Refactor: change variable name: => highlight_minus_lines - Refactor: clean up --color-only config implementation