caolan / caolan/nodeunit

lcov report has bad metrics when using sandbox

未关闭
#274 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
1.9k
派生
359
PR 合并指标
30 天内没有已合并 PR

描述

I tried producing a code coverage report using the lcov reporter. It works as long as I don't mess with the sandbox util.

I'm using the sandbox utility to replace 'require' and mock out modules used by the module under test.

I've been working really hard at trying different code coverage tools and different ways to mock.

Should I be mocking differently or is there a way we could fix the code coverage instrumentation?

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先使用 issue 中描述的 module-mocking 设置,在启用和禁用 sandbox 工具的情况下重现 lcov reporter 的输出。检查 lcov reporter 与 sandbox 的交互,以确定 mocking 改变的是 instrumentation,还是仅改变报告的指标。报告指标在使用 sandbox 时准确,或已明确确定受支持的 mocking 限制,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
testing
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。