Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

lcov reporter is not working

オープン
#258 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
cli, testing

調査の方向性

Node.js 0.10.26 上で nodeunit 0.8.6 を使って報告されたコマンドを再現し、default reporter と html reporter を lcov と比較してください。nodeunit CLI の reporter 選択を lcov reporter のエントリーポイントまで追跡し、lcov の呼び出しが何も出力せずに終了するのではなく、coverage 出力を生成することを確認してください。

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

説明

I'm trying to use the lvoc reporter on my project, but there's just no output from nodeunit.

If I invoke nodeunit test only:

henvic at henvic-mp in ~/projects/liferay/grunt-cli-config (master●●)
$ nodeunit test

config_options_test
✔ config_options - normalize
✔ config_options - parse
✔ config_options - any
✔ config_options - boolean
✔ config_options - negative

OK: 5 assertions (140ms)

If I try to invoke with the lcov reporter:

henvic at henvic-mp in ~/projects/liferay/grunt-cli-config (master●●)
$ nodeunit test --reporter lcov

If I try to invoke with the html reporter:

henvic at henvic-mp in ~/projects/liferay/grunt-cli-config (master●●)
$ nodeunit test --reporter=html
<html>
<head>
<title></title>
<style type="text/css">
body { font: 12px Helvetica Neue }
h2 { margin:0 ; padding:0 }
pre { font: 11px Andale Mono; margin-left: 1em; padding-left: 1em; margin-top:0; font-size:smaller;}
.assertion_message { margin-left: 1em; }
  ol {  list-style: none;   margin-left: 1em;   padding-left: 1em;  text-indent: -1em;}
  ol li.pass:before { content: "\2714 \0020"; }
  ol li.fail:before { content: "\2716 \0020"; }
</style>
</head>
<body>
<h2>config_options_test</h2>
<ol>
<li class="pass">config_options - normalize</li>
<li class="pass">config_options - parse</li>
<li class="pass">config_options - any</li>
<li class="pass">config_options - boolean</li>
<li class="pass">config_options - negative</li>
</ol>
<h3>OK: 5 assertions (151ms)</h3>
</body>
</html>

nodeunit version 0.8.6, node.js version 0.10.26.
Repo https://github.com/henvic/grunt-cli-config

主要言語
JavaScript
スター
1.9k
フォーク
359
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

caolan/nodeunit のほかの issue

caolan/nodeunit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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