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

Ensure the results directory exists when writing a file in AllureRuntime #894

Closed
delatrie opened this issue Feb 29, 2024 · 0 comments · Fixed by #974
Closed

Ensure the results directory exists when writing a file in AllureRuntime #894

delatrie opened this issue Feb 29, 2024 · 0 comments · Fixed by #974
Assignees
Labels
theme:commons type:bug Something isn't working
Milestone

Comments

@delatrie
Copy link
Collaborator

delatrie commented Feb 29, 2024

AllureRuntime creates the results directory only once (in its constructor).
Some testing tools like Cypress support interactive testing with long-running sessions. If the directory gets deleted, each further attempt to write an Allure file will fail until the directory is recreated by hand or until the tool is restarted.

We should check if the directory exists before writing a file. If it's not, we should create it.

Originally posted by @delatrie in #815 (comment)

@delatrie delatrie added type:bug Something isn't working theme:commons labels Feb 29, 2024
@delatrie delatrie mentioned this issue Feb 29, 2024
2 tasks
@epszaw epszaw self-assigned this Mar 14, 2024
@baev baev added this to the 3.0 milestone Apr 10, 2024
@baev baev closed this as completed in #974 May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:commons type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants