Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disabling the plugin #1174

Open
edikdeisling opened this issue Oct 18, 2024 · 2 comments
Open

Support disabling the plugin #1174

edikdeisling opened this issue Oct 18, 2024 · 2 comments
Labels
theme:cypress type:new feature New feature or request

Comments

@edikdeisling
Copy link

Is your feature request related to a problem? Please describe.
It is not always necessary to run allure. For example, during development, it's not needed.

Describe the solution you'd like
It would be nice to have the same as @cypress/code-coverage logic here(checking env variable)
https://github.com/cypress-io/code-coverage/blob/a5a95d5a65be1509a55e81d238cacbf1418652e1/support.js#L279

Or export function, which I should call to run the plugin. For example, in cypress-terminal-report
https://github.com/archfz/cypress-terminal-report/blob/master/src/installLogsCollector.ts#L117
But exporting the function is a breaking change.

Describe alternatives you've considered
It is possible to make if (env) { await import('allure-cypress') }, but this works only in Component testing with vite dev server. For e2e, cypress has internal webpack logic with not allow to have top-level await

Additional context
Add any other context or screenshots about the feature request here.

@baev
Copy link
Member

baev commented Oct 18, 2024

Disabling the Allure integration will break the Allure Runtime API calls. Why does having the Allure plugin bother you?

@edikdeisling
Copy link
Author

edikdeisling commented Oct 18, 2024

@baev
We're moving the Cypress configuration inside the company to a common package, and allure is a part of this configuration. But not every team needs it. So I want to allow pass "allure: false" somehow.

This will allow not to run of unnecessary code, which produces files on disk, slow test runs and make the system less stable as a whole

@delatrie delatrie added the type:new feature New feature or request label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:cypress type:new feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants