You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the construction of the test environment pipeline, Istanbul instrumentation is used. Manual testing and automated testing are performed, and coverage reports are collected.
Several core issues of production collection
Does instrumentation have a significant impact on the production environment?
Is the data collection range all users or a controllable range?
Data reporting timing and cost.
Is data collection legal?
Some ideas
Data can be pruned to only retain hit data. Map data can be obtained during the pipeline, which can reduce 90% of the reported data volume.
Progressive instrumentation. First, instrument some file paths (newly added files), observe the impact, and then gradually expand the scope.
For data reporting timing, it can be reported when the user closes the page to reduce the impact on the user. The reported js sdk is introduced through the script tag, which does not affect page rendering and can also be updated at any time.
Benefits brought
Production coverage data can help us better understand the code running situation, such as which code blocks have not been executed and which code blocks are frequently executed, which is very helpful for optimizing code.
It can help us better understand user behavior, such as which functions are frequently used by users and which functions are ignored by users, which is very helpful for product optimization.
Compared with burying points, coverage data is more comprehensive, more accurate, more intuitive, and more convenient for analysis.
The text was updated successfully, but these errors were encountered:
Canyon Production Coverage Collection
Current situation
During the construction of the test environment pipeline, Istanbul instrumentation is used. Manual testing and automated testing are performed, and coverage reports are collected.
Several core issues of production collection
Some ideas
Benefits brought
The text was updated successfully, but these errors were encountered: