# ng-test-runner-schematics

> Schematics for ng-test-runner

Latest version **0.0.1** (published 2019-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-test-runner-schematics
pnpm add ng-test-runner-schematics
yarn add ng-test-runner-schematics
bun add ng-test-runner-schematics
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2019-06-05 |
| First published | 2019-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 22.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | marmatys |
| Keywords | schematics, tdd, ng-test-runner |

## Links

- npm: https://www.npmjs.com/package/ng-test-runner-schematics
- npm.io page: https://npm.io/package/ng-test-runner-schematics

## Dependencies (5)

- [typescript](https://npm.io/package/typescript.md) ^3.2.2
- [@schematics/angular](https://npm.io/package/@schematics/angular.md) ^7.0.2
- [@angular-devkit/core](https://npm.io/package/@angular-devkit/core.md) ^7.0.2
- [schematics-utilities](https://npm.io/package/schematics-utilities.md) ^1.1.1
- [@angular-devkit/schematics](https://npm.io/package/@angular-devkit/schematics.md) ^7.0.2

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2019-06-05

## README

# ng-test-runner-schematics
[![Build Status](https://travis-ci.org/Pragmatists/ng-test-runner-schematics.svg?branch=master)](https://travis-ci.org/Pragmatists/ng-test-runner-schematics)
## About
[Schematics](https://www.npmjs.com/package/@angular-devkit/schematics) for [ng-test-runner](https://github.com/Pragmatists/ng-test-runner). It generates Angular `Component` with spec where `ng-test-runner` is configured and ready to run.
## Installation
```bash
ng add ng-test-runner-schematics
``` 
## Usage
### Test for Presentational Component
```bash
ng g ng-test-runner-schematics:component my-compoment
```
### Test for Smart Component (that uses http)
```bash
ng g ng-test-runner-schematics:component --server my-compoment 
```
### Test with speed hack
It decreases tests execution time by ~40%. For details see https://github.com/angular/angular/issues/12409#issuecomment-383607643 (and full discussion)
```bash
ng g ng-test-runner-schematics:component --fast my-compoment 
```
## Options
|Option                  |Description|
|------------------------|-----------|
|--server=true&#124;false|Flag to indicate if a sinon server is added to spec.<br>Default: `false`    |
|--fast=true&#124;false  |Flag to indicate if speed hack should be added to spec.<br>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](https://angular.io/cli/generate#component).

---
_Source: https://npm.io/package/ng-test-runner-schematics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
