Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

利用istanbul-middleware实现Egg项目的代码覆盖率 #5366

Open
cheneylz opened this issue Nov 18, 2024 · 0 comments
Open

利用istanbul-middleware实现Egg项目的代码覆盖率 #5366

cheneylz opened this issue Nov 18, 2024 · 0 comments

Comments

@cheneylz
Copy link

cheneylz commented Nov 18, 2024

背景

不知道有没有其他同学有个类似想法,在Web网站运行业务,想要知道自己项目哪些代码被执行过,哪些代码没有被执行过;类似Java的JaCoCo,可以统计出项目代码运行时的代码覆盖率(非单元测试),得出这部分数据可以让开发团队指定对应的优化策略或者测试手段。

思路

目前的思路考虑在Agent启动时利用 istanbul-middleware 对项目代码插桩,定期输出指定的覆盖率报告到指定目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant