Skip to content

Add an interactive tests set #251

Closed
Closed

Description

@tomaka

One of the major problems of winit in general is the lack of precise API design, which in turn causes a lack of uniformity between platforms.

This can't really be solved with unit tests. If for example you want to test whether a window correctly appears, you would have to write platform-specific code in the test. Not only is it very annoying to do, but it also means that the tests wouldn't solve the problem of the lack of uniformity.

However I think we could add an interactive tests suit. The user would run a program, which spawns windows and asks the user whether some feature works, or asks the user to perform some actions like pressing a specific key or resizing the window. This program would be the same on all platforms, allowing one to quickly determine whether something works or doesn't work correctly on any given platform.

Activity

  1. added
    S - api
    S - enhancement
    on Aug 4, 2017
  2. added
    H - help wanted
    D - hard
    P - normal
    on May 6, 2018
  3. daxpedda commented on Apr 18, 2024

    @daxpedda
    Member

    Closing in favor of #2866.

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

    D - hardH - help wantedP - normalS - apiS - enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions