Skip to content

Git diff style error logging for tests #2

@adrianbukros

Description

@adrianbukros

The PointFree folks implemented a Git diff style error logging in their test framework. It helps with identifying the difference between the expected and the actual output. Example:

State change does not match expectation: …

      AppState(
              // ...
            description: "",
    −       id: 00000000-0000-0000-0000-000000000001,
    +       id: 00000000-0000-0000-0000-000000000002,
            isComplete: false
          ),
        ]
      )

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions