Code-Coverage plugin does not work reliably when run in an Azure Pipeline
Maintainer antworten meist innerhalb von 1 Tag
@marktnoonan arbeitet bereits daran.
Seit 27.6.2023.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Logs and screenshots
Cannot find coverage file C:\azure_devops_agent\_work\8\s\packages\cypress-honeybee-e2e\.nyc_output\out.json
Skipping coverage report
Versions
- What is this plugin's version?
"@cypress/code-coverage": "^3.10.4"
- What is Cypress version?
"cypress": "^12.5.0"
- What is your operating system?
- Tried on Windows 10 and Ubuntu Linux (20.04), both OSs show the same behavior
- What is the shell?
- Windows: tried with CMD and Powershell Core
- Linux: tried with BASH and Powershell Core
- What is the Node version?
node 18.15.0
- What is the NPM version?
npm 8.19.3
- How do you instrument your application?
- The MFEs are instrumented with Babel and the Instanbul plugin
- 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?- I had to blur the picture due to confidential information in it but I hope you get the impression of the
window.__coverage__object
- I had to blur the picture due to confidential information in it but I hope you get the impression of the
- Is there
.nyc_outputfolder? Is there.nyc_output/out.jsonfile. Is it empty? Can you paste at least part of it so we can see the keys and file paths?- Here is the basic problem. Please see the bug description below.
- Do you have any custom NYC settings in
package.json(nycobject) or in other NYC config filespackage.json:
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"all": true,
"exclude": [ /* a list of glob patterns */ ]
}
- Do you run Cypress tests in a Docker container?
- No
Describe the bug
If we ran the pipeline e.g. three times consecutively, there is the possibility to have two times a .nyc_output folder and an out.json file with data in it and one time we will have an unsuccessful attempt (with the error message above). But there is also the possibility to have it the other way around (one successful and two unsuccessful), three successful attempts, or no successful attempt at all. No changes are made to the test code or the NYC configuration between the runs.
Additionally, I tried to create a .nyc_output/out.json file with an empty JSON object (e.g. { } before the runs, which lead to another error message and no data in out.json. So I removed this intermediate step again.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 440
- Forks
- 114
- Ø Merge
- 42 Min.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus cypress-io/code-coverage
-
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 40/100
cypress-io/code-coverage#1018 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
cypress-io/code-coverage#993 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
cypress-io/code-coverage#967 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
cypress-io/code-coverage#959 ·
Maintainer antworten meist innerhalb von 1 Tag
-
performance
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
cypress-io/code-coverage#933 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in cypress-io/code-coverage
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/azure-functions-nodejs-extensions#180 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 2 Tagen
-
iso-bmff: add IsoBoxReadView.readUint64 and IsoBoxWriteView.writeUint64 for exact 64-bit fieldsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
streaming-video-technology-alliance/common-media-library#611 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
prime-radiant-inc/evener#5901 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:frontend kind:bug priority:p3 ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag