jj/tests
Martin von Zweigbergk 31ad0cd2ed formatter: reset color around newlines
There are several reasons for this:

 * We can more easily skip styling a trailing blank line, which other
   internal code then can correctly detect as having a trailing
   newline. This fixes the TODO in tests/test_commit_template.rs.

 * Some tools (like `less -R`) add an extra newline if the final
   character is not a newline (e.g. if there's a color reset after
   it), which led to an annoying blank line after the diff summary in
   e.g. `jj status`.

 * Since each line is styled independently, you get all the necessary
   escapes even when grepping through the output.

 * Some terminals extend background color to the end of the terminal
   (i.e. past the newline character), which is probably not what the
   user wanted.

 * Some tools (like `less -R`) get confused and lose coloring of lines
   after a newline.
2023-01-13 21:47:50 -08:00
..
common Add a config edit command to open jj config in editor 2023-01-12 01:10:07 -06:00
test_abandon_command.rs jj abandon: Print every abandoned commit 2023-01-11 23:32:39 -08:00
test_alias.rs formatter: use crossterm for colors 2023-01-13 21:47:50 -08:00
test_branch_command.rs
test_checkout.rs Improve short_commit_description for commits without a description 2023-01-11 23:32:39 -08:00
test_commit_command.rs cli: include diff summary in commit/describe editor content 2022-12-23 00:47:22 +09:00
test_commit_template.rs formatter: reset color around newlines 2023-01-13 21:47:50 -08:00
test_concurrent_operations.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_config_command.rs Add a config edit command to open jj config in editor 2023-01-12 01:10:07 -06:00
test_debug_command.rs Add "jj debug config-schema" command to output JSON schema 2023-01-03 22:02:25 -06:00
test_describe_command.rs tests: use insta to test editor contents 2022-12-23 00:47:22 +09:00
test_diff_command.rs
test_diffedit_command.rs run_merge_tool, edit_diff: Print command args with -v instead of errors 2023-01-12 23:07:59 -08:00
test_edit_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_git_clone.rs
test_git_colocated.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_git_export.rs
test_git_push.rs backend: make random ChangeId fully random, remove UUID mask bits 2023-01-14 14:37:45 +09:00
test_git_remotes.rs
test_gitignores.rs
test_global_opts.rs formatter: don't write escape codes until we write text 2023-01-13 21:47:50 -08:00
test_init_command.rs
test_interdiff_command.rs
test_log_command.rs formatter: reset color around newlines 2023-01-13 21:47:50 -08:00
test_move_command.rs tests: use insta to test editor contents 2022-12-23 00:47:22 +09:00
test_new_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_obslog_command.rs cli: normalize line ending of edited commit description, ensure last newline 2022-12-22 14:59:03 +09:00
test_operations.rs jj op log: Show durations with relative timestamps 2023-01-07 12:08:00 -08:00
test_print_command.rs
test_rebase_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_resolve_command.rs formatter: don't write escape codes until we write text 2023-01-13 21:47:50 -08:00
test_restore_command.rs
test_revset_output.rs revset: parse hg/git-like '^' postfix operator and show hint 2022-12-23 00:38:29 +09:00
test_show_command.rs
test_sparse_command.rs
test_split_command.rs cli: rephrase diff summary header so it can be reused for commit/describe 2022-12-23 00:47:22 +09:00
test_squash_command.rs tests: use insta to test editor contents 2022-12-23 00:47:22 +09:00
test_status_command.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00
test_templater.rs jj log: Change conflicted branches from br? to br?? 2023-01-09 22:44:45 -08:00
test_undo.rs
test_unsquash_command.rs jj log: Change conflicted branches from br? to br?? 2023-01-09 22:44:45 -08:00
test_untrack_command.rs
test_workspaces.rs cli: append "\n" to commit description specified by -m/--message 2022-12-22 14:59:03 +09:00