Open umesh-timalsina opened 2 years ago
@kecso - Are you interested in something like this (ie, open to PRs implementing it)? The main idea is basically updating the generated plugin tests so they include automated tests for running the plugin in the browser, too.
I am not, but it would be useful nonetheless :).
webgme-cli
uses plugins in thewebgme-engine
to generate files for plugins, visualizers etc... and the test suites use the_globals
api provided bywebgme
to provide a range of well defined and customizable test suites. While, this works great for testing in a node environment, what is the recommended way to define an end-to-end browser testing regime for a webgme app?Some Observations
Levaraging
karma
, there are certain inbrowser tests (esp. for the client api) that are used to testwebgme-engine
. Based on brief walkthrough of the code-base one can note that, for an end-to-end browser testing regime (For the UI or Plugins) that leverage the same techniques used inwebgme-engine
, one must:karma
to supportrequirejs
and configure somerequirejs
paths that are used bywebgme
as well as thewebgme
app you are developing.karma
Can this be extended in such a way that the browser-testing support from
webgme-engine
provides a base configuration and server starting capabilities such that we can leverage that users (developers) can define their browser-tests?