x)- [ ] bug report -> please search issues before submitting
- [x] feature request
@angular/cli: 1.1.0
node: 7.7.0
os: darwin x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/core: 4.1.3
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/material: 2.0.0-beta.6-6aaddbf
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/platform-server: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler: 4.1.3
@angular/compiler-cli: 4.1.3
OSX Sierra
Could ng generate a test after a component was written ?
Something like ng g test to-test.component.ts could (over)write test, maybe even including required dependencies analyzing the component.
Thanks.
alan
Just curious if this is something the team has plans to implement? Or more specifically if so where this is on the roadmap?
I was specifically looking for a generate command that inserts dependencies, because it is just very inconvenient searching for all dependencies in a bigger project. I am sure a proper tool can do that automatically, because it is all about pointers.
One generated spec with dependencies included that has the test "should create", so that I know the component instance is created without any problems and I can start create tests for the specific functions.
Duplicate of https://github.com/angular/angular-cli/issues/7727
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
I was specifically looking for a generate command that inserts dependencies, because it is just very inconvenient searching for all dependencies in a bigger project. I am sure a proper tool can do that automatically, because it is all about pointers.
One generated spec with dependencies included that has the test "should create", so that I know the component instance is created without any problems and I can start create tests for the specific functions.