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
the parser doesn't find the report files, because it tries to prepend the path with the current working directory, failing on an error (if I were to run this from /tmp/test-runner folder): Error: ENOENT: no such file or directory, open '/tmp/test-runner/tmp/reports/results-2023-08-29T07:35:39.xml'.
Is there any reason the working directory is always prepended to the configured file path? If we are using a relative path, we shouldn't really need it and on the other hand, when we are using absolute path, it stops working completely. Moreover, before we get to this part of the code, we run the file matcher to expand the glob patterns here: https://github.com/test-results-reporter/parser/blob/main/src/parsers/index.js#L56 which works on the paths without adding cwd, so it already needs to work there correctly.
Can the affected part of the code just be removed, or do you have a use case where it is required?
The text was updated successfully, but these errors were encountered:
When I try to run the reporter with an absolute path to the reports, e.g.
the parser doesn't find the report files, because it tries to prepend the path with the current working directory, failing on an error (if I were to run this from
/tmp/test-runner
folder):Error: ENOENT: no such file or directory, open '/tmp/test-runner/tmp/reports/results-2023-08-29T07:35:39.xml'
.I suspect it has to do with this portion of the code: https://github.com/test-results-reporter/parser/blob/main/src/helpers/helper.js#L8
Is there any reason the working directory is always prepended to the configured file path? If we are using a relative path, we shouldn't really need it and on the other hand, when we are using absolute path, it stops working completely. Moreover, before we get to this part of the code, we run the file matcher to expand the glob patterns here: https://github.com/test-results-reporter/parser/blob/main/src/parsers/index.js#L56 which works on the paths without adding cwd, so it already needs to work there correctly.
Can the affected part of the code just be removed, or do you have a use case where it is required?
The text was updated successfully, but these errors were encountered: