Automated test for Bevy through BRP#23647
Conversation
3679862 to
0e1f61c
Compare
0e1f61c to
6750aa1
Compare
There was a problem hiding this comment.
I see the value in these examples as is (to demonstrate manipulating a live-app for testing purposes), but I wonder if these examples could be made more compelling by exploring it from the prospective of an app creator attempting to incorporate automated tests into their project.
For example, it might be helpful to setup how this could look if someone wants to have these automated tests run in CI by giving an example GitHub Action config or something alongside (although something like that might probably be in the works for this repo itself?, in which case I would just express that such a setup may be useful to share with app creators as well!).
I’m also not sure if the phrase “Automated Test” sounds too vague for what this is. I would liken this to an “(End-to-end?) Integration Test" since it tests running a whole app.
|
Once this is merged, the testing section of the Bevy Book should be updated to link to this example. |
Co-authored-by: Kevin Chen <chen.kevin.f@gmail.com>
I think that's more book content than example content. Also my long term goal is to have something similar to playwright in usability, but I failed to do it for a while so decided to go step by step and start with something that is like selenium 1. I plan to add a bevy_integration_test_through_brp (or something else if I find a better name by then) with nice wrapper methods to send a mouse click on an element, automatic waits, assertions and selectors. I'll probably iterate in examples until I have something that could use its own crate. |
Co-authored-by: Kevin Chen <chen.kevin.f@gmail.com>
Objective
Solution
WindowEventso that it goes through the whole of BevyTesting