-
Is there a framework for writing automated tests against a rendered diagram? If so, does it support the various clients (VS Code, Theia, browser)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
No, there is no dedicated framework (yet). For unit and integration testing (e.g. handlers, factories, etc.), we typically use plain JUnit or mocha, depending on the server in our projects. However, there might be something along those lines coming up in the next months. If you are interested in contributing to that endeavor please let us know! |
Beta Was this translation helpful? Give feedback.
No, there is no dedicated framework (yet).
For unit and integration testing (e.g. handlers, factories, etc.), we typically use plain JUnit or mocha, depending on the server in our projects.
For end-to-end tests, we used Playwright quite successfully in some projects. In those projects, we usually also write a page object model library to assist writing more concise tests, similar to Theia Playwright. We didn't extract a generic framework out of those page object models yet though.
Also, we only used Playwright for browser testing so far, but not for Electron. Theoretically there is experimental support though.
However, there might be something along those lines coming up in the next month…