Code Coverage html report is empty
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cypress, react, typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Tái hiện vấn đề bằng cách sử dụng repository Cypress_CodeCoverage_ReactApp được liên kết và chạy npm run coverage:report sau khi xác nhận rằng window.__coverage__ và .nyc_output/out.json đã được điền dữ liệu. So sánh báo cáo HTML được tạo với hành vi được mô tả trong issue #227; hoàn tất có nghĩa là báo cáo chứa coverage đã thu thập thay vì bị trống.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Logs and screenshots
Please provide debug logs by running Cypress from the terminal with DEBUG=code-coverage environment variable set. See the Debugging section of the README file.
Versions
- What is this plugin's version? If this is NOT the latest released version, can you try the latest version, please? Latest
"cypress/code-coverage": "3.12.39",
"istanbul-lib-coverage": "3.2.2",
"nyc": "17.0.0",
"dependencies":
"cypress/instrument-cra": "1.4.0",
"babel-plugin-istanbul": "6.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"scripts":
"start": "react-scripts -r @cypress/instrument-cra start",
"build": "react-scripts build",
"test": "react-scripts test cypress run",
"eject": "react-scripts eject",
"coverage:report": "nyc report --reporter=html --reporter=text-summary",
-
If the plugin worked before in version X but stopped after upgrading to version Y, please try the released versions between X and Y to see where the breaking change was.
-
What is the Cypress version?
Cypress package version: 13.6.6
Cypress binary version: 13.6.6
Electron version: 27.1.3 -
What is your operating system? mac os
-
What is the shell? Zsh
-
What is the Node version?
Bundled Node version: 18.17.1 -
What is the NPM version?
10.5.0 -
How do you instrument your application? Cypress does not instrument web application code, so you must do it yourself. https://istanbul.js.org/ instanbul tool latest
-
When running tests, if you open the web application in a regular browser and open DevTools, do you see
window.__coverage__object? Can you paste a screenshot? Yes I can see it. -
Is there a
.nyc_outputfolder? Is there a.nyc_output/out.jsonfile? Is it empty? Can you paste at least part of it so we can see the keys and file paths? It's not empty -
Do you have any custom NYC settings in
package.json(nycobject) or in other NYC config files? No -
Do you run Cypress tests in a Docker container? No
Describe the bug
NYC reports and counters are generated but the code coverage HTML file is empty. The window.coverage object is present.
Link to the repo
(https://github.com/Isurunc/Cypress_CodeCoverage_ReactApp/tree/master)
my issue is similar to https://github.com/cypress-io/code-coverage/issues/227
- Ngôn ngữ chính
- TypeScript
- Star
- 440
- Fork
- 114
- Merge trung bình
- 42 phút
- Pull request đã merge (30 ngày)
- 19
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cypress-io/code-coverage
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 40/100
cypress-io/code-coverage#1018 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
cypress-io/code-coverage#993 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
cypress-io/code-coverage#967 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
cypress-io/code-coverage#959 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
performance
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
cypress-io/code-coverage#933 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của cypress-io/code-coverage
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
pending close triaging
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
anomalyco/opencode#62582 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
callstack/react-native-paper#5189 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
live-codes/livecodes#1079 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: ESP 2 ROĐang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày