@@ -173,6 +173,32 @@ http://localhost:8765/debug.html
173
173
174
174
## WebStorm configuration
175
175
176
+ ### Recent releases
177
+
178
+ With the recent releases of WebStorm and the karma plugin, you could run the
179
+ test suite by only adding a karma run configuration.
180
+
181
+ Right-click on the ` karma.conf.js ` at the root of the project and select
182
+ "create 'karma.conf.js'...".
183
+
184
+ Set the parameters as follow:
185
+ - ** Node interpreter** : ` /path/to/node `
186
+ - ** Karma node package** : ` /path/to/node_modules/karma `
187
+ - ** Configuration file (usually * .conf.js)** : ` path/to/angular.dart/karma.conf.js `
188
+ - ** Environment variables** :
189
+ - ** DARTIUM_BIN** : ` /path/to/dartium `
190
+ - ** PATH** : ` /path/to/dart-sdk/bin `
191
+ - ** DART_FLAGS** : ` --enable_type_checks --enable_asserts `
192
+
193
+ Now just hit the run button next to the configuration name in the Toolbar and
194
+ you should see the test running. The test suite is automatically executed each
195
+ time a source file is modified.
196
+
197
+ If you encounter troubles with this configuration, try using the one from the
198
+ following section.
199
+
200
+ ### Former releases
201
+
176
202
Start by creating a run configuration to launch the Karma server. Go to the menu
177
203
"Run > Edit Configuration Menu" add create a ` Node.js ` configuration named
178
204
"Karma server".
@@ -192,7 +218,7 @@ and pressing the play icon. You should see the following message at the bottom
192
218
of the run window:
193
219
` INFO [Chrome 34.0.1847 (Linux)]: Connected on socket 97GpzQz-MfHFPHgHOVkc with id 10199707 `
194
220
195
- ### Running the tests
221
+ #### Running the tests
196
222
197
223
You need to create a "Karma tests" run configuration. Start by copying the
198
224
"Karma server" run configuration and xhange the ** Application parameters** to
@@ -202,7 +228,7 @@ To execute the test suite, you just need to run this "Karma tests"
202
228
configuration. You should make sure to execute "Karma server" first _ (You do not
203
229
need to restart the server once it has been started once)_ .
204
230
205
- ### Debugging
231
+ #### Debugging
206
232
207
233
You need to create a "JavaScript Debug" configuration named "Karma debug". Set
208
234
the parameters as follow:
0 commit comments