-
Notifications
You must be signed in to change notification settings - Fork 10
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
Testing #8
Comments
WebStorm communicates with karma using karma-intellij as a mediator. For a start, we can test how karma-intellij communicates with karma (without starting WebStorm IDE). I think that would be a good start because up until now all incompatibilities were caused by changing in karma API. I think that changing karma API is inevitable we just have to be informed about needed changes in karma-intellij. General suggestion: it'd be good to introduce public API for all internals karma-intellij depends on. That would help a little. But adding tests will surely help more. |
I wanna follow the policy of "no breaking changes in the stable branch", I need to think about this more, some kind of protocol of public API for I agree that having karma e2e test is probably the first step, but lot of Maybe we could bootstrap the webstorm plugin (Java) with some kind of mock On Tue, Jul 30, 2013 at 3:50 AM, Sergey Simonchik
|
If I'm correct, WebStorm plugin (Java) communicates with Karma only to parse webServer port from the line: So introducing public API here (karma-runner/karma#614) would eliminate WebStorm plugin (Java) and Karma communication. I agree that complete e2e tests should involve WebStorm Java part also. |
@segrey how do you test WebStorm itself ? Or plugins ? Do you have any sort of mock version of webstorm ? Or some way to control WebStorm? I wanna have at least one high level test, that runs before each Karma release to make sure we don't break this plugin. |
We usually mock external dependencies (in this case it's karma itself). |
I'd like to test at least three components: karma + karma-intellij plugin + On Fri, Aug 16, 2013 at 12:56 PM, Sergey Simonchik <[email protected]
|
The karma-intellij plugin relies on tons of Karma internals and it's very difficult to not break it. We need some e2e test, that would run a simple project in WebStorm.
@segrey do you have any framework/helpers for testing webstorm that we could take leverage ? I'd really like to get to the point where we have CI build, that starts real webstorm and runs a Karma test, because Karma is now on auto-release (patch versions) - if the Travis build passes it gets released twice a week and this would help us a lot from breaking people.
The patch release should not contain any breaking change (in the stable release), but really this plugin depends on so many internals, that it's pretty much impossible to not break it...
The text was updated successfully, but these errors were encountered: