Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git diff style error logging for tests #2

Open
adrianbukros opened this issue Jun 17, 2020 · 1 comment
Open

Git diff style error logging for tests #2

adrianbukros opened this issue Jun 17, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@adrianbukros
Copy link
Contributor

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
          ),
        ]
      )
@adrianbukros adrianbukros added the enhancement New feature or request label Jun 17, 2020
@gyulavoros
Copy link
Member

For reference please take a look at:

@PsHegger PsHegger self-assigned this Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants