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

Is it possible to use env depending on the status of tests #208

Open
AndriiZhydkykh opened this issue May 17, 2023 · 2 comments
Open

Is it possible to use env depending on the status of tests #208

AndriiZhydkykh opened this issue May 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@AndriiZhydkykh
Copy link

Hello. Can I add "allureLogCypress: true" to failed tests only? And some other env like allureAttachRequests: true

@AndriiZhydkykh AndriiZhydkykh added the enhancement New feature or request label May 17, 2023
@Shelex
Copy link
Owner

Shelex commented May 17, 2023

@AndriiZhydkykh I am afraid, answer would be "no", as we define configuration in runtime, and at the start of the test we do not know the status yet. Probably it could be implemented the same way as "allureClearSkippedTests" (by post-processing json files after tests are executed), but honestly I do not see any benefit doing that.

@Shelex Shelex added the question Further information is requested label May 17, 2023
@AndriiZhydkykh
Copy link
Author

AndriiZhydkykh commented May 18, 2023

@Shelex Thank you. The question is related to the issue of "allureLogCypress" and "allureAttachRequests" taking up significant space when using CI pipelines with a large number of tests in the project. And maybe a function like this can optimize this problem.

@Shelex Shelex removed the question Further information is requested label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants