cypress-allure-plugin
cypress-allure-plugin copied to clipboard
Is it possible to use env depending on the status of tests
Hello. Can I add "allureLogCypress: true" to failed tests only? And some other env like allureAttachRequests: true
@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 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.