Are there gaps in UI test coverage downstream projects need to test specifically? #11164
-
Hello! I know from #11105 that there's extensive test coverage for Theia, and specifically UI testing via https://github.com/eclipse-theia/theia/tree/master/examples/playwright - That being said, as with all projects I suspect there are UI testing gaps downstream projects need to know about so they can either contribute back to Theia to help fill in the blanks (best) or test themselves in their own project, with their own visual regression testing suite (sub-optimal). My questions are as follows:
I know it's not necessarily easy to answer but thanks in advance for any input you could provide. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
@anavarre thank you for the discussion.
The framework makes use of unit-tests, integration tests and UI tests (through playwright). That being said, I don't think downstream can trust that all or most elements in the framework are tested, we prioritized some of the more important or critical features, and accept contributions for further coverage. Note that the integration tests also help in this regard, they do not rely on UI so they are more robust and compliment the UI tests.
I do not believe it is measured today, but it is certainly useful to get a better picture of what is tested and covered. At the moment you'd have to go into the sources to see what is tested. cc @JonasHelming do you have any additional information for this item?
I'm not sure I follow. AFAIK we do not test dependencies we use, other than ensuring our monaco editor integration works well, including language features. Do you mind elaborating about this item? |
Beta Was this translation helpful? Give feedback.
-
@anavarre : The UI tests we currently have do mainly test the page object model, i.e. we test that the frame we provide for Playwright still works correctly. IMHO, a higher UI test coverage makes mostly sense in downstream projects. Due to the nature of Theia as a platform, we do not know how the UI of tools based on Theia looks like and behaves. |
Beta Was this translation helpful? Give feedback.
@anavarre thank you for the discussion.
The framework makes use of unit-tests, integration tests and UI tests (through playwright). That being said, I don't think downstream can trust that all or most elements in the framework are tested, we prioritized some of the more important or critical features, and accept contributions for further coverage. Note that the integration tests also help in this regard, they do not rely on UI so they are more robust and compliment the UI tests.
I do not believe it is measured today, but it is certainly useful to get a better p…