-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
jira ticketThis issue was created from a Jira ticket during the migration to GitHub issuesThis issue was created from a Jira ticket during the migration to GitHub issuesscope - reportingReporting test results and related infoReporting test results and related info
Description
This function should generate a diff, optionally with ANSI colour codes via a boolean parameter, between two values. It should support deeply nested tables, accounting for circular references.
Acceptance criteria
- It takes two arguments:
valueBeforeandvalueAfter - It prints a table with correct indentation
- For fields that are equal between the two tables, it prints the field only once and with no colouring / annotation
- For fields that are different between the two tables
- It prints the field in the before value
- highlighted in red
- with a
-before it - this should be at the same horizontal position regardless of indentation
- It also prints the field in the after value
- highlighted in green
- with a
+before it - this should follow the same positioning as above
- It prints the before and after values adjacent to each other vertically
- It prints the before value before the after value
- It prints the field in the before value
- It is used in matchers that can compare two table values, such as
toEqual
Metadata
Metadata
Assignees
Labels
jira ticketThis issue was created from a Jira ticket during the migration to GitHub issuesThis issue was created from a Jira ticket during the migration to GitHub issuesscope - reportingReporting test results and related infoReporting test results and related info
Type
Projects
Status
Done