2.28.1 - cy.allure().writeEnvironmentInfo() no longer generates widgets/environment.json
See original GitHub issueWhen I upgrade to versions of cypress-allure-plugin
higher than 2.28.0, my unit tests fail because widgets/environment.json
has empty array as contents, instead of the expected contents. I am generating this using cy.allure().writeEnvironmentInfo()
.
Cypress version: 9.7.0 Node version: 16.17.1 cypress-allure-plugin version: >=2.28.1 all seem to have this issue OS: Mac 12.6 Monterey
To Reproduce Steps to reproduce the behavior:
- Install the above versions
- Write an environment file using
cy.allure().writeEnvironmentInfo({ foo: 'bar' })
- Open the report - the environment area is blank.
- Open cypress/reports/widgets/environment.json - the contents are an empty array.
Expected behavior The Allure report should contain Environment info as it did before 2.28.1.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
please add label->framework · Issue #42 · Shelex/cypress ...
and generate a report - it will have no effect. So I would advise several options: cy.allure().writeEnvironmentInfo({ "framework": "Cypress" }) ...
Read more >Custom Video Path,about Shelex/cypress-allure-plugin - Coder Social
Custom Video Path about cypress-allure-plugin HOT 2 CLOSED. shelex avatar ... writeEnvironmentInfo() no longer generates widgets/environment.json HOT 5 ...
Read more >shelex/cypress-allure-plugin/README.md - UNPKG
Take into account that Cypress generate plugins file with `module.exports` on the first initialization but you should have only one export section.
Read more >@shelex/cypress-allure-plugin - npm
Commands are producing allure steps automatically based on cypress events and are trying to represent how code and custom commands are executed ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cypress version: 10.9.0 @badeball/cypress-cucumber-preprocessor: 13.0.3 (latest) cypress-allure-plugin: 2.33.1 node: 14.17.3
Hi, I have upgraded to v2.33.1 but still the environment.json file returns as an empty array when report is prepared. I can see
xxxx.results.json
andyyyy.container.json
files in the/allure-results
path. However envorimnet.json is missing. I geterror while writing allure results: ReferenceError: filePath is not defined
error.I have tried both wit and without defining the
allureResultsPath
configuration, both were unsuccessful. You can see Debug logs:🎉 This issue has been resolved in version 2.33.2 🎉
The release is available on:
Your semantic-release bot 📦🚀