-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ability to fake Vuforia API requests #1
Comments
hey @robgwin, can you get rid of |
The Log class is needed for the debug output. I can make it degrade gracefully and then we add only to require-dev.
|
I made a fork, so I can just keep using that for local dev if you don't want to add: I also split the logging to a separate 'log_requests' option so I can troubleshoot real vuforia requests as well. |
@robgwin Thank you for contributing to this package. The idea is good, but there is a couple of things we need to consider before merging this changes. This library is open source and can be used by everyone. Here are couple of notes that you need to consider.
Keep in mind that this can be used also in automated tests and should not affect core files at all. TIP: For logging you can create Console Writer instead of File logs. |
Hi @teodos,
I added an option to my local copy of this library that lets me skip the Vuforia API calls and instead log the request data and return a fake success response. This makes it easier to work on sparkd features without throwing tons of junk at vuforia 😄 Here is the diff of my code in case you'd like to add it for future use. Let me know if you'd like me to push it to a feature branch (I would need privs to do so). -rob
The text was updated successfully, but these errors were encountered: