X Tutup
Skip to content

refactor(testing): move common testing logic into test_injector#5920

Closed
juliemr wants to merge 1 commit intoangular:masterfrom
juliemr:testing-refactor
Closed

refactor(testing): move common testing logic into test_injector#5920
juliemr wants to merge 1 commit intoangular:masterfrom
juliemr:testing-refactor

Conversation

@juliemr
Copy link
Copy Markdown
Member

@juliemr juliemr commented Dec 15, 2015

Before, all test framework wrappers (internal for dart and js/ts,
angular2_test for dart and testing for js/ts) had similar logic to
keep track of current global test injector and test provider list.
This change wraps that logic into one class managed by the test
injector.

@juliemr juliemr added the area: testing Issues related to Angular testing features, such as TestBed label Dec 15, 2015
@juliemr juliemr added this to the beta.1 milestone Dec 15, 2015
@juliemr
Copy link
Copy Markdown
Member Author

juliemr commented Dec 15, 2015

Un-reverting pr #5819, now deprecating the functions to directly createTestInjector (instead of removing them). This will resolve the breakage in g3.

Before, all test framework wrappers (internal for dart and js/ts,
angular2_test for dart and testing for js/ts) had similar logic to
keep track of current global test injector and test provider list.
This change wraps that logic into one class managed by the test
injector.
@juliemr juliemr added the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 15, 2015
@juliemr
Copy link
Copy Markdown
Member Author

juliemr commented Dec 15, 2015

A following PR will clean up the list of providers that test injector uses, and allow a better way of overriding them for a different platform. I think it will be much clearer if that is a second PR, so I'm doing it separately.

@juliemr
Copy link
Copy Markdown
Member Author

juliemr commented Dec 15, 2015

cc @IgorMinar as well

@juliemr juliemr assigned IgorMinar and unassigned vicb Dec 16, 2015
@juliemr juliemr added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Dec 17, 2015
@juliemr juliemr assigned mprobst and unassigned IgorMinar Dec 17, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #5920 on behalf of @mprobst to branch presubmit-mprobst-pr-5920.

@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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
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 area: testing Issues related to Angular testing features, such as TestBed cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

X Tutup