Skip to content

UI for viewing diffs #103

Description

@jatcwang

For diffs from larger data structures, users need a more interactive way to explore the diff as text diffs can get too overwhelming.

Requirements

  • Explore difflicious diff output
  • Parts of the diff can be expanded and minimise. This applies to both parts that are the same (no diff) or different

Architecture

  • Frontend in scala.js
  • Backend (server) will register new diffs from failed tests, and serve the frontend via an API.

Reporting diff errors

Ideally, we want minimal code change in the tests to enable reporting to the backend.

Possible approaches:

  • Using Implicits/givens, the "diff server reporter" is brought in via an import
  • Use some sort of ServiceLoader mechanism to automatically load the reporter if it's on the classpath, activated if an env var / system property is set.
    • Does not require code modification
    • Not cross platform

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions