Skip to content

test(docs-infra): add missing tests for observables and promises - #34537

Closed
sonukapoor wants to merge 3 commits into
angular:masterfrom
sonukapoor:tests-for-observables
Closed

sonukapoor wants to merge 3 commits into
angular:masterfrom
sonukapoor:tests-for-observables

Conversation

@sonukapoor

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #34398

Does this PR introduce a breaking change?

  • Yes
  • No

@sonukapoor
sonukapoor requested a review from a team December 22, 2019 23:27
@gkalpak gkalpak added comp: docs-infra action: review The PR is still awaiting reviews from at least one requested reviewer state: blocked target: patch This PR is targeted for the next patch release labels Dec 23, 2019
@ngbot ngbot Bot modified the milestone: needsTriage Dec 23, 2019
@gkalpak

gkalpak commented Dec 23, 2019

Copy link
Copy Markdown
Member

Marking this as blocked on #34327, since it builds on top of that.

@sonukapoor
sonukapoor force-pushed the tests-for-observables branch from 3eb2e21 to 583ad7f Compare January 22, 2020 01:50
@sonukapoor
sonukapoor requested a review from a team January 22, 2020 01:50
@sonukapoor

Copy link
Copy Markdown
Contributor Author

Marking this as blocked on #34327, since it builds on top of that.

@gkalpak This is unblocked now since #34327 has been merged. Can you review it please?

@sonukapoor
sonukapoor force-pushed the tests-for-observables branch from 583ad7f to aa9a17b Compare January 22, 2020 02:12
@gkalpak gkalpak changed the title Tests for observables test(docs-infra): add missing tests for obserables and promises Jan 22, 2020

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, @sonukapoor ❤️
I've left some comments. Also, the current commit message ("tests for observables and promises") is too generic. Can you, please, change it to be more specific. E.g. something like:

test(docs-infra): add tests for `comparing-observables` example

@gkalpak

gkalpak commented Jan 23, 2020

Copy link
Copy Markdown
Member

I, also, just realized that we need to make sure the tests are run on CI (currently they are not afaict) 😁

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just few more (minor) comments to go 😃

Also, as mentioned in #34537 (comment), we need to run these tests on CI. This is similar to what you did for other Observables-related examples in #34063. I.e. you need to:

@sonukapoor

Copy link
Copy Markdown
Contributor Author

Just few more (minor) comments to go 😃

Also, as mentioned in #34537 (comment), we need to run these tests on CI. This is similar to what you did for other Observables-related examples in #34063. I.e. you need to:

Yes, I haven't gotten to that yet. I wanted to make sure that we are happy with the codebase now. I should be able to look into the testing from CI next.

@sonukapoor
sonukapoor force-pushed the tests-for-observables branch from f450f03 to d902c0d Compare January 25, 2020 22:47
@sonukapoor
sonukapoor requested a review from a team January 25, 2020 22:47
@sonukapoor
sonukapoor force-pushed the tests-for-observables branch 4 times, most recently from 232d2e0 to a5231d7 Compare January 26, 2020 00:14
@mary-poppins

Copy link
Copy Markdown

You can preview a5231d7 at https://pr34537-a5231d7.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview d2bd1cc at https://pr34537-d2bd1cc.ngbuilds.io/.

@sonukapoor
sonukapoor force-pushed the tests-for-observables branch from d2bd1cc to 98a1e73 Compare January 26, 2020 01:37
@pullapprove
pullapprove Bot removed the request for review from IgorMinar July 23, 2020 03:33
@sonukapoor
sonukapoor force-pushed the tests-for-observables branch 2 times, most recently from 490eec2 to 9f71b16 Compare August 14, 2020 11:57
@mary-poppins

Copy link
Copy Markdown

You can preview 23959b7 at https://pr34537-23959b7.ngbuilds.io/.

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests look fine (with some minor comments). Thx for sorting this out.
I am not a big fan of the current setup. I'll look into whether it is possible to simplify it a bit.

Comment thread aio/scripts/spec-reporter.js Resolved
@googlebot

This comment has been minimized.

@gkalpak

This comment has been minimized.

@googlebot

This comment has been minimized.

@gkalpak

gkalpak commented Aug 22, 2020

Copy link
Copy Markdown
Member

@sonukapoor, I rebased on latest master and pushed a fixup commit that simplifies the setup: 6579810

BTW, I believe all changes belong to a single commit. Having one commit to add the tests and another one to run them doesn't make sense imo.

@mary-poppins

Copy link
Copy Markdown

You can preview 9683390 at https://pr34537-9683390.ngbuilds.io/.

@sonukapoor

Copy link
Copy Markdown
Contributor Author

@sonukapoor, I rebased on latest master and pushed a fixup commit that simplifies the setup: 6579810

BTW, I believe all changes belong to a single commit. Having one commit to add the tests and another one to run them doesn't make sense imo.

Thanks @gkalpak - I have addressed the additional changes. I created the additional commit to separate between the setup to run the tests and to create the tests itself. I think they are both two different things. I can squash everything together if that is preferred.

@mary-poppins

Copy link
Copy Markdown

You can preview 470cef8 at https://pr34537-470cef8.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 82d200a at https://pr34537-82d200a.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview d84dcc1 at https://pr34537-d84dcc1.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview d4da011 at https://pr34537-d4da011.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview 157a0f8 at https://pr34537-157a0f8.ngbuilds.io/.

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes lgtm. Thx for the patience while we were figuring things out, @sonukapoor 😁 💯

One last thing:
The docs(docs-infra) commit message looks wrong. It should either be squashed into the first commit or it should be a test(docs-infra) commit.

@sonukapoor

Copy link
Copy Markdown
Contributor Author

The changes lgtm. Thx for the patience while we were figuring things out, @sonukapoor 😁 💯

No worries @gkalpak

One last thing:
The docs(docs-infra) commit message looks wrong. It should either be squashed into the first commit or it should be a test(docs-infra) commit.

I have changed this squashed them. Please review one last time. Thanks

@mary-poppins

Copy link
Copy Markdown

You can preview f3bd82e at https://pr34537-f3bd82e.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview c265a4f at https://pr34537-c265a4f.ngbuilds.io/.

This commit adds missing tests for obserables and promises which
are both stand-alone mini-apps.
This commit adds the necessary custom commands to run the tests in a
node environment.
@mary-poppins

Copy link
Copy Markdown

You can preview e25f686 at https://pr34537-e25f686.ngbuilds.io/.

@mary-poppins

Copy link
Copy Markdown

You can preview ec9406f at https://pr34537-ec9406f.ngbuilds.io/.

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, @sonukapoor! Thx 👍

Reviewed-for: global-docs-approvers

@angular-automatic-lock-bot

Copy link
Copy Markdown

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants