Open cheshi-mantu opened 1 month ago
Would You be able to provide an example that reproduces it? From the error it seems you are trying to add attachment before a test case is actually started.
I was not able to reproduce it via example repo: https://github.com/allure-examples/allure-cucumber-example/blob/master/features/step_definitions/common_steps.rb#L41
Originally, I could reproduce the issue within our project. Let me try with the demo example: it could be the case that we use a customized Cucumber framework on our project and some allure internal code requires minor adoption or patch within our project. I will try first with the demo project, then continue with debugging on our project, and come back to you guys with the results. Thank you for providing the example code.
Current behaviour
Sending artifacts does not work for Cucumber on Ruby from the box
I am running a test with: “--format AllureCucumber::CucumberFormatter” and use the latest Allure gem version
Expected behaviour
artefacts are attached to test results