https://github.com/jomendez/angular-spec-test-generator
Angular spec generator, generate all spec file by sample cli.
https://github.com/jomendez/angular-spec-test-generator
Last synced: 2 months ago
JSON representation
Angular spec generator, generate all spec file by sample cli.
- Host: GitHub
- URL: https://github.com/jomendez/angular-spec-test-generator
- Owner: jomendez
- License: mit
- Created: 2022-04-06T22:37:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T03:53:32.000Z (over 3 years ago)
- Last Synced: 2025-02-21T21:32:53.743Z (8 months ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](http://badge.fury.io/js/angular-spec-test-generator)
# angular-spec-test-generator
> Angular spec generator, generate all spec file by sample cli.
## Description
Automatically create All spec file by cli.
## Install
```npm install -g angular-spec-test-generator```## Usage
```bash
angular-spec-test-generator 'C:\Users\userName\test'
```select a directory where you want to generate spec files, and then it will generate all Angular spec based on the components, pipes, services, guards and directives that you have in that folder.
> This script will only generate file when spec file doesn't exist, and the component / directive / guard / pipe / service follows the angular-cli file generate name.
## Configuration
You can set type to configurate which types you want to generate.
### Type```--type=guard,component,service ```
|type|alias|
|---|---|
|guard|`g` or `guard`|
|component|`c` or `component`|
|service|`s` or `service`|
|directive|`d` or `directive`|
|pipe|`p` or `pipe`|### Force
It will force replace exist spec files
```--force ```
### Clear
It will clear select spec with type
```--clear```