kotlin-composable-architecture icon indicating copy to clipboard operation
kotlin-composable-architecture copied to clipboard

Git diff style error logging for tests

Open adrianbukros opened this issue 4 years ago • 1 comments

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 avatar Jun 17 '20 21:06 adrianbukros

For reference please take a look at:

gyulavoros avatar Jun 18 '20 11:06 gyulavoros