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

Add more backends to the integration tests #3596

Open
notgull opened this issue Mar 19, 2024 · 2 comments
Open

Add more backends to the integration tests #3596

notgull opened this issue Mar 19, 2024 · 2 comments

Comments

@notgull
Copy link
Member

notgull commented Mar 19, 2024

On the it branch, I've added an X11 backend that runs the tests in a Docker container. We should add other backends as well to match winit's backends.

  • For Wayland, we can probably just add a headless Wayland compositor to the above Docker image.
  • For Web, we can compile to WASM and run in a headless browser. (cc @daxpedda, you said you wanted to take a crack at this)
  • For Windows, we can either run it in Wine under headless X11 or figure out if there is a way to do Windows heedlessly.
  • For Android and iOS, we can use their simulators.
  • Not sure about macOS, @madsmtm any ideas?
  • Not sure about Orbital, @jackpot51 any ideas?

See #2866 for top-level issue about integration testing.

@jackpot51
Copy link
Member

I wouldn't recommend automated testing with Redox at this point, though it can be done with redoxer.

@madsmtm
Copy link
Member

madsmtm commented Mar 21, 2024

From what I know, there's basically no way for non-macOS systems to run tests on macOS/iOS, not even in a virtual machine.

If we restrict this to "testing those platforms only work on macOS", then I think either using the XCTest framework and integrating with Xcode, or using some external tool to monitor the external state of the window, perhaps using AppleScript, would be the way forwards? Though I haven't researched this nearly enough.

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

No branches or pull requests

4 participants