caolan / caolan/nodeunit

lcov reporter is not working

オープン
#258 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
1.9k
フォーク
359
PR マージ指標
30日以内にマージされた PR はありません

説明

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

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"; }

config_options_test



  1. config_options - normalize

  2. config_options - parse

  3. config_options - any

  4. config_options - boolean

  5. config_options - negative


OK: 5 assertions (151ms)

```

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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

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

評価

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

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

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