-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to Webpack+Karma for the testing environment #349
Comments
Notes from my call with @pomek:
|
As for Webpack+ES6 modules, there's an updated article in https://leanpub.com/setting-up-es6/read#sec_webpack-babel. |
OK, there's is a chance that what they recommend ( |
Update from @pjasiun: So, most likely you had this right, @pomek and we've just read the code incorrectly. Let's keep it as you have it now. As for code coverage, @pjasiun didn't have any issues like we with uncovered branches, despite no branches in the code. So please check the method that he's using. |
I reported a ticket for removing the |
Let me say few words as an update for this ticket. Generally, Karma and Webpack works! We can test the whole editor: or particular package (for testing I choose the At this moment, all code is duplicated ( Unfortunately, I couldn't configure generating the code coverage with Karma and Webpack. We can test all the things using Karma and generate CC for:
the whole editor (unfortunately, I cannot show you): |
WAT... Webpack/Karma/Chrome uses all the available memory? It's not even about missing RAM, but most likely Node's limitation (1GB AFAIR). Buuuuut. I don't think this is a problem. We should strive to test every package separately and this works fine and is quick. If you make a PR to the engine and there are 10 dependent packages, the CI will need to run tests for all those packages and count their CC separately. So, you'll never need to run CC for all the packages combined. Besides, you should never do this because then one package's tests affect CC of other packages. |
OTOH, I can hardly believe that Webpack+Karma are not able to fit in 1GB ;/ Sounds crazy. How many modules do we have now? Cloc says:
Is it really too much for Webpack? |
I agree. We can run the whole tests from the ckeditor5 repository but CC we should check each package separately. |
We need to switch from Bender.js to a more popular setup for the main two reasons:
We have already experience with Karma and Webpack and this seems to be one of the most popular setups so we decided to use them for CKEditor 5.
The text was updated successfully, but these errors were encountered: