-
Notifications
You must be signed in to change notification settings - Fork 602
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
How to use in a UITest #346
Comments
Having the same issue here. |
having the same issue here. I'm using Xcode 13 |
What I have done in my project
|
Same issue :( |
Can you create a repo for your sample project and share link here. I would love to debug your issue and submit a pr. thanks |
Hi @kishorepran, so how about my JSON file? All of them put in main bundle? I think it will improve the app's size. |
@Wiley-Wan : Please refer to point 2 |
Same. Couldn't use it with my UITest |
Hi @sulaimansust , @Wiley-Wan : Please upload a sample project where this is not working and let me raise a pr with working example. |
New Issue Checklist
OHHTTPStubs
for your project sectionEnvironment
Issue Description
I am using OHHTTPStubs in my Units tests without any issue.
For my unit tests target I have my main app selected as the host application.
I have OHHTPStubs added under link with libraries for the unit testing target.
For my UITest target I have my main app selected as the target app.
I have also added OHHTPStubs under link with libraries for the UI testing target.
I am able to import OHHTTPStubs in to my UITest files and can add code to stub out requests. But when I run a UITest the stub blocks are never called.
I do not have OHHTTPStubs added under link with libraries for my main app.
I have seen this guide but not sure if it applies to my issue A tricky case with Application Tests
I think the setup I have is applying the stubs only to my UITesting app, and not the main app.
Any help would be appreciated thanks.
The text was updated successfully, but these errors were encountered: