Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 0525da8

Browse files
vicbtravis@travis-ci.org
authored andcommitted
chore(karma): Update karma instructions for WebStorm
1 parent 648c580 commit 0525da8

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

DEVELOPER.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,32 @@ http://localhost:8765/debug.html
173173

174174
## WebStorm configuration
175175

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+
176202
Start by creating a run configuration to launch the Karma server. Go to the menu
177203
"Run > Edit Configuration Menu" add create a `Node.js` configuration named
178204
"Karma server".
@@ -192,7 +218,7 @@ and pressing the play icon. You should see the following message at the bottom
192218
of the run window:
193219
`INFO [Chrome 34.0.1847 (Linux)]: Connected on socket 97GpzQz-MfHFPHgHOVkc with id 10199707`
194220

195-
### Running the tests
221+
#### Running the tests
196222

197223
You need to create a "Karma tests" run configuration. Start by copying the
198224
"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"
202228
configuration. You should make sure to execute "Karma server" first _(You do not
203229
need to restart the server once it has been started once)_.
204230

205-
### Debugging
231+
#### Debugging
206232

207233
You need to create a "JavaScript Debug" configuration named "Karma debug". Set
208234
the parameters as follow:

0 commit comments

Comments
 (0)