Schematics for ng-test-runner. It generates Angular Component with spec where ng-test-runner is configured and ready to run.
ng add ng-test-runner-schematicsng g ng-test-runner-schematics:component my-compomentng g ng-test-runner-schematics:component --server my-compoment It decreases tests execution time by ~40%. For details see angular/angular#12409 (comment) (and full discussion)
ng g ng-test-runner-schematics:component --fast my-compoment | Option | Description |
|---|---|
| --server=true|false | Flag to indicate if a sinon server is added to spec. Default: false |
| --fast=true|false | Flag to indicate if speed hack should be added to spec. Default: false |
| You can also use all Angular CLI component options (they are passed to default CLI schematic). For list of flags check Component documentation. |