Skip to content

Investigate the possibility of testing elements #73

Closed

Description

@djowel

Testing GUIs is tricky. but nevertheless, I don't feel good without tests. Right now, I have to build the examples and inspect each one of them to make sure everything is good.

At the very least, a quick testing facility is probably something like:

  1. Saving the view to a PNG
  2. Comparing the PNGs to known 'golden' files and reporting the diffs.

It might be possible to simulate user interaction, but that can probably be done later.

Activity

  1. Xeverous commented on Mar 11, 2020

    @Xeverous
    Contributor

    You might want to expose an interface that allows issuing events programatically. Eg issue a virtual click at some coordinates and verify that state changed accordingly. If rendering in well-separated from the logic it should be trivial to test correct behavior.

  2. locked and limited conversation to collaborators on Nov 1, 2023
  3. converted this issue into a discussion #351 on Nov 1, 2023
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions