rust-windowing / winit

Window handling library in pure Rust
https://docs.rs/winit/
Apache License 2.0
4.85k stars 909 forks source link

Add more backends to the integration tests #3596

Open notgull opened 8 months ago

notgull commented 8 months ago

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.

See https://github.com/rust-windowing/winit/issues/2866 for top-level issue about integration testing.

jackpot51 commented 8 months ago

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

madsmtm commented 7 months ago

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.