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

Error when adding attachments on patched Cucumber version #560

Open
cheshi-mantu opened this issue Aug 15, 2024 · 6 comments
Open

Error when adding attachments on patched Cucumber version #560

cheshi-mantu opened this issue Aug 15, 2024 · 6 comments

Comments

@cheshi-mantu
Copy link

cheshi-mantu commented Aug 15, 2024

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 cheshi-mantu added the bug Something isn't working label Aug 15, 2024
@andrcuns andrcuns removed the bug Something isn't working label Aug 20, 2024
@andrcuns
Copy link
Collaborator

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

@agileseph
Copy link

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.

Copy link

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 github-actions bot added the Stale Stale issue label label Sep 21, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2024
@cheshi-mantu cheshi-mantu reopened this Sep 30, 2024
@cheshi-mantu cheshi-mantu added help wanted Extra attention is needed and removed Stale Stale issue label labels Sep 30, 2024
@andrcuns andrcuns removed the help wanted Extra attention is needed label Sep 30, 2024
@andrcuns
Copy link
Collaborator

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.

Copy link

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 github-actions bot added the Stale Stale issue label label Nov 30, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2024
@cheshi-mantu cheshi-mantu removed the Stale Stale issue label label Dec 12, 2024
@cheshi-mantu cheshi-mantu reopened this Dec 12, 2024
@cheshi-mantu
Copy link
Author

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?

@andrcuns andrcuns changed the title Sending artifacts does not work for Cucumber on Ruby out of the box Error when adding attachments on patched Cucumber version Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants