[SERVER-78255] [CQF] Print diff from ASSERT_AUTO_* macros in color Created: 20/Jun/23 Updated: 22/Jun/23 |
|
| Status: | Open |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ben Shteinfeld | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Optimization
|
| Participants: |
| Description |
|
If the ASSERT_AUTO_* macros printed their diff using colors, it would make parsing the diff in the terminal much easier. Mainly, lines with "+" could be printed in green and lines with "-" could be printed in red. We should be able to achieve this using ANSI escape codes to control the color. |