Develop E2E Tests
This is a proposal to develop simple end to end (E2E) unit tests by simply using the current (and future) examples/.
The design is as follows:
- Spin up a global instance of headless chromium
- Write unit tests in selenium python for each
example. These will basically just make sure that each example runs as expected.
The unit test "framework" will:
- Compile each example with
cargo web deploy - Run the example specific test defined in
examples/<EXAMPLE>/testswhich will test againsttarget/deploy/index.htmlusing the global headless browser.
I had a similar framework with artifact so I can go ahead and start on this if @DenisKolodin is okay with the design.
with the examples all combined into a "single example" this will be much easier. Good job!
I think I will be doing this for artifact using https://github.com/jonhoo/fantoccini (selenium for rust basically) within the next month or so. Once I've got the hang of it I could do the same treatment to yew.
I think this would help development and stability a lot. Let me know what you think
I think this would be great! Were you able to make any progress on this @vitiral? Would you like to continue to work on this? If not, I'd be happy to do this after I finish the DevTools (if I'm ever actually able to get them to work).
Glad you like the idea! No I won't be able to work on it as I haven't been doing web-dev lately and have a million other projects, including a third child to be born soon :D
No worries :) I'll try and work on this if I have some time.