Skip to content

Generate and improve test/spec generation #14872

@Calidus

Description

@Calidus

🚀 Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [X ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

There are lots of Enterprise Angular Apps that have really spotty testing. There isn't a way to generate a .spec.ts file for an existing component or service. Wiring up a TestingModule for each component is a slow process by hand if you are not familiar with the code base.

Describe the solution you'd like

The ability to generate a spec file similar to that which ng generate component generates but from an existing component or service.

ng generate spec app.component.ts

Describe alternatives you've considered

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions