You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the directives found in `igniteui-angular.js` to use [Ignite UI](http://igniteui.com) controls in [AngularJS](http://angularjs.com) pages. [Work with the running samples here](http://igniteui.github.io/igniteui-angular).
6
8
@@ -150,7 +152,11 @@ Simply do:
150
152
151
153
npm install
152
154
153
-
The command is preconfigured and it will also call `bower install` behind the scenes.
155
+
The command is preconfigured and it will also call `bower install` behind the scenes.
156
+
157
+
Then you need to instrument the source file with:
158
+
159
+
npm run instrument
154
160
155
161
####Running Unit Tests
156
162
The easiest way to run the unit tests is to use the npm script:
@@ -190,6 +196,25 @@ Running the tests is done with:
190
196
191
197
**Note:** You will need to run the protractor on a separate bash
192
198
199
+
###Code coverage
200
+
After running the Karma or Protractor tests by default a coverage will be created for each of them.
201
+
202
+
To combine the both reports into one single report you need to execute:
203
+
204
+
npm run cover-combined
205
+
206
+
After that the default directory where you can open the code coverage is igniteui-angular/coverage/final/lcov/src.
207
+
208
+
**Running specific coverage:**
209
+
210
+
To view only the Karma coverage you can see it under *coverage/karma/**/lcov-report/src*.
211
+
212
+
To view the code coverage only for the Protractor you need to run the command:
213
+
214
+
npm run cover-protractor
215
+
216
+
After that the location is the same(igniteui-angular/coverage/final/lcov/src). That is because the Protractor report is not easily readable by default.
0 commit comments