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

xchtmlreport bundle path cannot contain space! #6

Open
kwanhiuhong opened this issue Nov 29, 2019 · 5 comments
Open

xchtmlreport bundle path cannot contain space! #6

kwanhiuhong opened this issue Nov 29, 2019 · 5 comments

Comments

@kwanhiuhong
Copy link

I am trying to do something like:
xchtmlreport -r "my app.test_result" OR
xchtmlreport -r my\ app.test_result

but both of them failed to generate report. It seems like xchtmlreport recognises "my app.test_result" as two arguments......

This issue happened after I updated my xchtmlreport to version 2.0.0 or the latest version

@gadireddi226
Copy link

I have the same issue.

@charlieVader
Copy link

Hey there, @kwanhiuhong, @gadireddi226, have you been able to solve the issue?
Are you using the standalone version or the fastlane plugin?

@mamax
Copy link

mamax commented Oct 27, 2021

@charlieVader Using Fastlane plugin. Facing the same issue.

@charlieVader
Copy link

charlieVader commented Oct 27, 2021

@mamax, I just get it working with the following "workaround":

By default, the .xcresult file is going to be located in ./fastlane/test_output/Your Target Name.xcresult (assuming the Target Name contains blank spaces)

Instead of using the plugin directly

xchtmlreport(
  result_bundle_path: path_to_result_bundle
)

Try issuing the command directly:

sh 'xchtmlreport -r ./fastlane/test_output/Your\ Target\ Name.xcresult'

Let me know if that works for you!

@mamax
Copy link

mamax commented Oct 27, 2021

@charlieVader Thanks, here what I've got:

Step:
xchtmlreport -r ../build/reports/Canadian\ Tire\ UAT.xcresult

$ xchtmlreport -r ../build/reports/Canadian\ Tire\ UAT.xcresult
▸ error: unexpected argument Tire; use --help to list available arguments
▸ XCTestHTMLReport 2.0.0
▸ Warning: Can't find invocation record for : ../build/reports/Canadian Tire UAT.xcresult
▸ Error: An error has occured while creating the report. Error: Error Domain=NSCocoaErrorDomain Code=512 "The file “Canadian Tire UAT.xcresult” couldn’t be saved in the folder “reports”." UserInfo={NSFilePath=../build/reports/Canadian Tire UAT.xcresult, NSUnderlyingError=0x7f83df105720 {Error Domain=NSPOSIXErrorDomain Code=21 "Is a directory"}}

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

4 participants