cypress-allure-plugin icon indicating copy to clipboard operation
cypress-allure-plugin copied to clipboard

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

Open AndriiZhydkykh opened this issue 1 year ago • 2 comments

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

AndriiZhydkykh avatar May 17 '23 17:05 AndriiZhydkykh

@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 avatar May 17 '23 21:05 Shelex

@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.

AndriiZhydkykh avatar May 18 '23 06:05 AndriiZhydkykh