caolan / caolan/nodeunit

lcov reporter is not working

Đang mở
#258 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
1.9k
Fork
359
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Tái hiện các lệnh đã được báo cáo với nodeunit 0.8.6 trên Node.js 0.10.26, so sánh các reporter default và html với lcov. Theo dõi việc lựa chọn reporter của nodeunit CLI đến entry point của lcov reporter và xác minh rằng việc gọi lcov tạo ra đầu ra coverage thay vì thoát một cách im lặng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
cli, testing
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.