You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However the PR seems to be about TAP, not junit files? Is the code path similar somehow, or is this a similar-but-different feature implementation?
Appreciated either way
Problem to solve
Generating folder structure (
mkdir -p
) when using--report-junit
flag. Identical feature to #2531, but for--report-junit
after--report-html
.My previous feature request on report-html, linked, missed that the same behaviour would happen with junit reports.
As I just now upgraded to v4.3.0 with the
mkdir -p
feature, I "uncovered" this issue/feature request opportunity.Proposal
Like for #2531, use
create_dir_all
to create all folders as needed.Additional context and resources
Reproducing the issue
hurl --test --report-junit non-existent-folder/new_junit_file.xml
error: Failed to produce JUnit report: Os { code: 2, kind: NotFound, message: "No such file or directory" }
mkdir -p non-existent-folder/
hurl --test --report-junit non-existent-folder/new_junit_file.xml
Tracing the solution
Error message triggered here:
hurl/packages/hurl/src/report/junit/mod.rs
Line 104 in 4638705
Seems the file creation code of:
hurl/packages/hurl/src/report/junit/mod.rs
Line 93 in 4638705
Is missing call to
fs::create_dir_all
?The solution of #2531 is likely just as good
Tasks to complete
create_dir
tocreate_dir_all
, this may need to introduce a whole folder creation logic)The text was updated successfully, but these errors were encountered: