Code Coverage html report is empty
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- cypress, react, typescript
- 領域
- testing
調査の方向性
リンクされた Cypress_CodeCoverage_ReactApp リポジトリを使って問題を再現し、window.__coverage__ と .nyc_output/out.json に値が設定されていることを確認した後、npm run coverage:report を実行します。生成された HTML レポートを issue #227 に記載された挙動と比較します。完了の条件は、レポートが空ではなく収集された coverage を含んでいることです。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 440
- フォーク
- 114
- 平均マージ
- 42分
- マージ済み PR(30日)
- 19
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cypress-io/code-coverage のほかの issue
-
難易度 3/5 半日 初心者へのやさしさ 40/100
cypress-io/code-coverage#1018 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
cypress-io/code-coverage#993 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
cypress-io/code-coverage#967 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
cypress-io/code-coverage#959 ·
メンテナーはふだん 1 日以内に返信
-
performance
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
cypress-io/code-coverage#933 ·
メンテナーはふだん 1 日以内に返信
cypress-io/code-coverage の issue をすべて見る
似ている issue
-
bug needs-triage potential-regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws/aws-sdk-js-v3#8408 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
colinhacks/zod#6743 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Packing list: the weight field drops digits on a slow connection and saves the wrong weightオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
openai/openai-node#3124 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
anthropics/anthropic-sdk-typescript#1296 ·
メンテナーはふだん 8 日以内に返信