-
Notifications
You must be signed in to change notification settings - Fork 26.2k
docs: testing guide for CLI #20697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: testing guide for CLI #20697
Conversation
You can preview a14e2b6 at https://pr20697-a14e2b6.ngbuilds.io/. |
a14e2b6
to
1cb3b2f
Compare
You can preview 1cb3b2f at https://pr20697-1cb3b2f.ngbuilds.io/. |
1cb3b2f
to
7159fef
Compare
You can preview 7159fef at https://pr20697-7159fef.ngbuilds.io/. |
613349e
to
8f020a5
Compare
You can preview 8f020a5 at https://pr20697-8f020a5.ngbuilds.io/. |
8f020a5
to
b831b5a
Compare
You can preview b831b5a at https://pr20697-b831b5a.ngbuilds.io/. |
b831b5a
to
822245d
Compare
You can preview 822245d at https://pr20697-822245d.ngbuilds.io/. |
822245d
to
2552d12
Compare
You can preview 2552d12 at https://pr20697-2552d12.ngbuilds.io/. |
2552d12
to
28edf58
Compare
You can preview 28edf58 at https://pr20697-28edf58.ngbuilds.io/. |
28edf58
to
7c3d378
Compare
You can preview 7c3d378 at https://pr20697-7c3d378.ngbuilds.io/. |
You can preview 500f414 at https://pr20697-500f414.ngbuilds.io/. |
500f414
to
f3409ab
Compare
You can preview f3409ab at https://pr20697-f3409ab.ngbuilds.io/. |
f3409ab
to
eb07c9d
Compare
You can preview eb07c9d at https://pr20697-eb07c9d.ngbuilds.io/. |
You can preview 7fa6a01 at https://pr20697-7fa6a01.ngbuilds.io/. |
f01581a
to
0c61a6c
Compare
Rebased and force pushed to see if I clear the Travis errors |
You can preview 0c61a6c at https://pr20697-0c61a6c.ngbuilds.io/. |
Hi @wardbell! This PR has merge conflicts due to recent upstream merges. |
1 similar comment
Hi @wardbell! This PR has merge conflicts due to recent upstream merges. |
0c61a6c
to
5f3dc46
Compare
You can preview 5f3dc46 at https://pr20697-5f3dc46.ngbuilds.io/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This review is only from the point of view of AIO infrastructure, not the docs or examples themselves.
@@ -36,7 +36,7 @@ | |||
"angular-in-memory-web-api": "~0.5.0", | |||
"core-js": "^2.4.1", | |||
"express": "^4.14.1", | |||
"rxjs": "^5.5.0", | |||
"rxjs": "^5.5.6", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that you need to fix up the yarn.lock
file associated with this package.json
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice too if I could remember why I bumped it. After reviewing RxJS changelog no reason leaps out at me. I'll roll back and confirm.
Update: there was no point to this change and I reverted it.
@@ -48,7 +48,8 @@ export class CodeExampleComponent implements OnInit { | |||
// Now remove the title attribute to prevent unwanted tooltip popups when hovering over the code. | |||
element.removeAttribute('title'); | |||
|
|||
this.isAvoid = this.path.indexOf('.avoid.') !== -1; | |||
const avoid = getBoolFromAttribute(element, 'avoid'); | |||
this.isAvoid = avoid || this.path.indexOf('.avoid.') !== -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No unit tests for this feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. Will add.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests have been added.
…gular#20165) - Update tooling to support revised testing guide (PR angular#20697). - Require jasmine upgrade for examples that use marble testing. - Copy `cli/package.json` to `testing/` and add `jasmine-marbles`. - Resolve merge conflicts created by `NgModules` guides. PR Close angular#20165
- updates tests - heavy prose revisions - uses HttpClient (with angular-in-memory-web-api) - test HeroService using `HttpClientTestingModule` - scrub away most By.CSS - fake async observable with `asyncData()` - extensive Twain work - different take on retryWhen - remove app barrels (& systemjs.extras) which troubled plunker/systemjs - add dummy export const to hero.ts (plunkr/systemjs fails w/o it) - shrink and re-organize TOC - add marble testing package and tests - demonstrate the "no beforeEach()" test coding style - add section on Http service testing - prepare for stackblitz - confirm works in plunker except excluded marble test - add tests for avoidFile class feature of CodeExampleComponent
5f3dc46
to
a324d1f
Compare
@petebacondarwin This works for master and should work for patch. Do you feel comfortable setting those labels? I'm not personally up-to-speed on that. |
You can preview a324d1f at https://pr20697-a324d1f.ngbuilds.io/. |
I don't see any reason why this should not land on stable as well as master. |
- updates tests - heavy prose revisions - uses HttpClient (with angular-in-memory-web-api) - test HeroService using `HttpClientTestingModule` - scrub away most By.CSS - fake async observable with `asyncData()` - extensive Twain work - different take on retryWhen - remove app barrels (& systemjs.extras) which troubled plunker/systemjs - add dummy export const to hero.ts (plunkr/systemjs fails w/o it) - shrink and re-organize TOC - add marble testing package and tests - demonstrate the "no beforeEach()" test coding style - add section on Http service testing - prepare for stackblitz - confirm works in plunker except excluded marble test - add tests for avoidFile class feature of CodeExampleComponent PR Close #20697
- updates tests - heavy prose revisions - uses HttpClient (with angular-in-memory-web-api) - test HeroService using `HttpClientTestingModule` - scrub away most By.CSS - fake async observable with `asyncData()` - extensive Twain work - different take on retryWhen - remove app barrels (& systemjs.extras) which troubled plunker/systemjs - add dummy export const to hero.ts (plunkr/systemjs fails w/o it) - shrink and re-organize TOC - add marble testing package and tests - demonstrate the "no beforeEach()" test coding style - add section on Http service testing - prepare for stackblitz - confirm works in plunker except excluded marble test - add tests for avoidFile class feature of CodeExampleComponent PR Close angular#20697
…gular#20165) - Update tooling to support revised testing guide (PR angular#20697). - Require jasmine upgrade for examples that use marble testing. - Copy `cli/package.json` to `testing/` and add `jasmine-marbles`. - Resolve merge conflicts created by `NgModules` guides. PR Close angular#20165
- updates tests - heavy prose revisions - uses HttpClient (with angular-in-memory-web-api) - test HeroService using `HttpClientTestingModule` - scrub away most By.CSS - fake async observable with `asyncData()` - extensive Twain work - different take on retryWhen - remove app barrels (& systemjs.extras) which troubled plunker/systemjs - add dummy export const to hero.ts (plunkr/systemjs fails w/o it) - shrink and re-organize TOC - add marble testing package and tests - demonstrate the "no beforeEach()" test coding style - add section on Http service testing - prepare for stackblitz - confirm works in plunker except excluded marble test - add tests for avoidFile class feature of CodeExampleComponent PR Close angular#20697
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Update testing guide to reflect CLI usage and current "best practices"
See #19510
updates tests
HttpClient
(with angular-in-memory-web-api)HeroService
usingHttpClientTestingModule
By.css
asyncData()
TwainComponent
workretryWhen
systemjs.extras
) which troubled plunker/systemjsexport const
tohero.ts
(plunkr/systemjs fails w/o it)beforeEach()
" test coding stylePR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?