cypress-io / cypress-io/code-coverage

"combineCoverage" logged in stdout, creating huge logs

Open
#652 2 comments 0 reactions 0 assignees View on GitHub
E2E triaged type: enhancement
Dominant language
TypeScript
Stars
445
Forks
115
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/cypress-io/code-coverage/releases) 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](https://github.com/cypress-io/code-coverage/releases) 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](https://github.com/cypress-io/code-coverage#instrument-your-application), 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](https://github.com/istanbuljs/nyc#configuration-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**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.