"combineCoverage" logged in stdout, creating huge logs

Đang mở
#652 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
3/5
Thời gian dự kiến
1-2 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, docker, node.js, typescript
Lĩnh vực
testing-qa, tooling

Hướng nghiên cứu

Bắt đầu với commit 8f6154a48ef9256e4d3b57a2387d59c046aba12 và theo dõi cách tác vụ combineCoverage được ghi log vào cypress/logs và stdout. Tái hiện với Cypress 12.10.0, plugin 3.10.4 và thiết lập Docker trên Debian; được xem là hoàn tất khi các mục combineCoverage lớn không còn xuất hiện nữa khi tác vụ sử dụng log: false.

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

Mô tả

E2E triaged type: enhancement

Logs and screenshots

Here's the end of the log for one of my tests (as stylized by Firefox):

Screenshot 2023-05-12 at 2 02 45 PM

Each of those "request combineCoverage" lines are huge.

Versions

  • What is this plugin's version? If this is NOT the latest released version can you try the latest version, please? 3.10.4
  • 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 Cypress version? 12.10.0
  • What is your operating system? Debian, from Cypress Docker images
  • What is the shell? bash
  • What is the Node version? 16.17
  • What is the NPM version?
  • How do you instrument your application? Cypress does not instrument web application code, so you need to do it yourself. @cypress/instrument-cra
  • When running tests, if you open the web application in regular browser, and open DevTools, do you see window.__coverage__ object? Can you paste a screenshot?
  • Is there .nyc_output folder? Is there .nyc_output/out.json file. Is it empty? Can you paste at least part of it so we can see the keys and file paths?
  • Do you have any custom NYC settings in package.json (nyc object) or in other NYC config files
      "nyc": {
    "extends": "@istanbuljs/nyc-config-typescript",
    "all": true,
    "exclude": [
      "build/**",
      "coverage-cypress/**",
      "cypress/**",
      "**/__fixtures__/**",
      "**/__mocks__/**",
      "**/__tests__/**",
      "**/messages.{ts,js}",
      "**/*.story.*",
      "**/story.*",
      "**/*.d.ts"
    ],
    "report-dir": "./coverage-cypress",
    "temp-dir": "./coverage-cypress/.nyc_output",
    "reporter": [
      "text-summary",
      "json",
      "html"
    ]
    }
    
  • Do you run Cypress tests in a Docker container? Yes

Describe the bug

The combineCoverage task is logged (in both files saved to cypress/logs and to stdout), even though that task is run with { log: false} (see https://github.com/cypress-io/code-coverage/commit/8f6154a48ef9256e4d3b57a2387d59c046aba12e).

Link to the repo

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cypress-io/code-coverage

Tất cả issue của cypress-io/code-coverage

Issue tương tự

Thêm issue về TypeScript

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.