Please let us skip backend tests for this
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
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript
- Lĩnh vực
- testing
Hướng nghiên cứu
Bắt đầu bằng việc đọc support.js ở các dòng 158-208, đặc biệt là phần kiểm tra backendCodeCoverage và việc sử dụng baseUrl cùng proxyUrl. Theo dõi cách cấu hình hỗ trợ của Cypress đi đến đoạn mã này và xác định các bài kiểm thử coverage hiện có. Hoàn thành khi người dùng có thể bỏ qua việc thu thập coverage của backend mà không vô hiệu hóa các hành vi coverage khác.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I am really frustrated that backendCodeCoverage is running
https://github.com/cypress-io/code-coverage/blob/master/support.js#L158-L208
and its failing my test with the error
CypressError: `cy.request()` failed trying to load:
http://localhost:34212/__coverage__
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
> Error: socket hang up
-----------------------------------------------------------
The request we sent was:
Method: GET
URL: http://localhost:34212/__coverage__
-----------------------------------------------------------
Common situations why this would fail:
- you don't have internet access
- you forgot to run / boot your web server
- your web server isn't accessible
- you have weird network configuration settings on your computer
Because this error occurred during a `after all` hook we are skipping all of the remaining tests.
at https://tim-dev-at-intuit-e2e.app.intuit.com/__cypress/runner/cypress_runner.js:157368:78
From previous event:
at Context.request (https://tim-dev-at-intuit-e2e.app.intuit.com/__cypress/runner/cypress_runner.js:157365:15)
From Your Spec Code:
at Context.collectBackendCoverage (https://tim-dev-at-intuit-e2e.app.intuit.com/__cypress/tests?p=cypress/support/index.js:410:10)
From Node.js Internals:
RequestError: Error: socket hang up
at new RequestError (/Users//Library/Caches/Cypress/8.7.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/request-promise-core/lib/errors.js:14:15)
at Request.plumbing.callback (/Users//Library/Caches/Cypress/8.7.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/request-promise-core/lib/plumbing.js:87:29)
at Request.RP$callback [as _callback] (/Users//Library/Caches/Cypress/8.7.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/request-promise-core/lib/plumbing.js:46:31)
at self.callback (/Users//Library/Caches/Cypress/8.7.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/@cypress/request/request.js:183:22)
at Request.emit (events.js:376:20)
at Request.onRequestError (/Users//Library/Caches/Cypress/8.7.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/@cypress/request/request.js:869:8)
at ClientRequest.emit (events.js:388:22)
at Socket.socketOnEnd (_http_client.js:499:9)
at Socket.emit (events.js:388:22)
at endReadableNT (internal/streams/readable.js:1336:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Describe the solution you'd like
A clear and concise description of what you want to happen.
let me skip this part because i am not trying to collect backend test coverage but by your check that baseUrl and proxyUrl this part of your code thinks i am...
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
so far i have just edited the file directly and turned off those lines by just hard coding a false. right now i am looking at ways to set proxyUrl but there doesnt seem to be an easy way to do that.
Additional context
Add any other context or screenshots about the feature request here.
- 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ự
-
Add: Upin & Ipin Channel HDĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
S: triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
iot client
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Open-Locker/Open-Locker#365 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
inmanta/web-console#7787 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
shoelace-style/webawesome#2979 ·
Maintainer thường phản hồi trong vòng 1 ngày