feat(test): allow tests to specify the platform and application by juliemr · Pull Request #5937 · angular/angular · GitHub
Skip to content

feat(test): allow tests to specify the platform and application#5937

Closed
juliemr wants to merge 2 commits into
angular:masterfrom
juliemr:test-with-bundles-2
Closed

feat(test): allow tests to specify the platform and application#5937
juliemr wants to merge 2 commits into
angular:masterfrom
juliemr:test-with-bundles-2

Conversation

@juliemr

@juliemr juliemr commented Dec 16, 2015

Copy link
Copy Markdown
Member

Note: This is on top of #5920

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 state: WIP area: testing Issues related to Angular testing features, such as TestBed labels Dec 16, 2015
@pkozlowski-opensource

Copy link
Copy Markdown
Member

@juliemr

juliemr commented Dec 16, 2015

Copy link
Copy Markdown
Member Author

@pkozlowski-opensource agreed, looking into them. Dart is unhappy about const stuff.

… providers used

Part I - clean up and make the TestInjector object allow changes.
@juliemr juliemr force-pushed the test-with-bundles-2 branch from b9092d0 to 5e5f534 Compare December 16, 2015 20:24
@juliemr

juliemr commented Dec 16, 2015

Copy link
Copy Markdown
Member Author

Status update: I was hoping to add PLATFORM_DIRECTIVES to the test bindings in a way that doesn't introduce any breaking changes to tests, but it looks like that would be very convoluted to get working with the current set of internal tests (including the test.server.dart tests which can't include dart:html anywhere). I'm working on a minimal, simple breaking change proposal.

@juliemr

juliemr commented Dec 17, 2015

Copy link
Copy Markdown
Member Author

New proposal is here: #5975

Closing this one for now, since it's insufficient.

@juliemr juliemr closed this Dec 17, 2015
@angular-automatic-lock-bot

Copy link
Copy Markdown

@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

area: testing Issues related to Angular testing features, such as TestBed cla: yes state: WIP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants