allure-ruby icon indicating copy to clipboard operation
allure-ruby copied to clipboard

Sending artifacts does not work for Cucumber on Ruby out of the box

Open cheshi-mantu opened this issue 1 year ago • 3 comments

Current behaviour

Sending artifacts does not work for Cucumber on Ruby from the box

“ERROR -- : Can't add attachment, no test, step or fixture is running” during running the method “Allure.add_attachment(name: "Attachment Video", source: video_log_path, type: Allure::ContentType::TXT, test_case: true)” - just trying to send the text with name and link as txt content type

I am running a test with: “--format AllureCucumber::CucumberFormatter” and use the latest Allure gem version

Expected behaviour

artefacts are attached to test results

cheshi-mantu avatar Aug 15 '24 08:08 cheshi-mantu

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

andrcuns avatar Aug 20 '24 21:08 andrcuns

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.

agileseph avatar Aug 21 '24 15:08 agileseph

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Sep 21 '24 02:09 github-actions[bot]

Until there is a reproducible example, I don't think there is anything to do with this issue. I'm fairly certain, that and some allure internal code requires minor adoption or patch within our project is a big factor here.

andrcuns avatar Sep 30 '24 20:09 andrcuns

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Nov 30 '24 02:11 github-actions[bot]

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. @agileseph could you please provide the reproducible example for the issue?

cheshi-mantu avatar Dec 12 '24 09:12 cheshi-mantu

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Feb 11 '25 02:02 github-actions[bot]