caolan / caolan/nodeunit

lcov report has bad metrics when using sandbox

オープン
#274 コメント 0 件 リアクション 0 件 担当者 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 によってインストルメンテーションが変更されるのか、それとも報告されるメトリクスだけが変更されるのかを判断します。sandbox の使用時にレポートのメトリクスが正確であること、またはサポートされる mocking の制限が明確に確立されていることを確認できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。