Skip to content

Conversation

benlesh
Copy link
Contributor

@benlesh benlesh commented May 8, 2019

We have an issue where we would like to be able to test perf counter metrics in acceptance tests, but we are unable to do so, because it will break when those same tests are run with ViewEngine. This PR adds a testing utility to onlyInIvy that allows for testing of performance counters, and even gives readable errors for what value on ngDevMode is incorrect. Has typings for decent auto-completion as well.

  • Adds onlyInIvy.expectPerfCounters utility.
  • Adds one test to show usage
  • Adds dep to BUILD file to support importing necessary type

It is not the intention of this PR to add counter expectations to all acceptance tests.

We have an issue where we would like to be able to test perf counter metrics in acceptance tests, but we are unable to do so, because it will break when those same tests are run with ViewEngine. This PR adds a testing utility to `onlyInIvy` that allows for testing of performance counters, and even gives readable errors for what value on `ngDevMode` is incorrect. Has typings for decent autocompletion as well.
@benlesh benlesh added refactoring Issue that involves refactoring or code-cleanup target: major This PR is targeted for the next major release comp: ivy risk: low labels May 8, 2019
@ngbot ngbot bot added this to the needsTriage milestone May 8, 2019
@benlesh benlesh marked this pull request as ready for review May 8, 2019 20:21
@benlesh benlesh requested review from IgorMinar and a team as code owners May 8, 2019 20:21
Copy link
Contributor

@kara kara left a comment

Choose a reason for hiding this comment

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

LGTM

@benlesh benlesh added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels May 8, 2019
@benlesh
Copy link
Contributor Author

benlesh commented May 8, 2019

Caretaker note: Dual-globally approved. 🌐 🌐

@alxhub alxhub closed this in cb6ad97 May 9, 2019
BioPhoton pushed a commit to BioPhoton/angular that referenced this pull request May 21, 2019
We have an issue where we would like to be able to test perf counter metrics in acceptance tests, but we are unable to do so, because it will break when those same tests are run with ViewEngine. This PR adds a testing utility to `onlyInIvy` that allows for testing of performance counters, and even gives readable errors for what value on `ngDevMode` is incorrect. Has typings for decent autocompletion as well.

PR Close angular#30339
@angular-automatic-lock-bot
Copy link

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 15, 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 cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note refactoring Issue that involves refactoring or code-cleanup risk: low target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants