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

Unit tests will never work on our CI #24

Open
JagCesar opened this issue Mar 14, 2018 · 2 comments
Open

Unit tests will never work on our CI #24

JagCesar opened this issue Mar 14, 2018 · 2 comments

Comments

@JagCesar
Copy link
Owner

Our unit tests require valid credentials to be successful. How can we work around that?

Mocked data objects maybe? But then we have to automate the creation of those objects if Tesla desires to update the JSON object returned for any endpoint. 🤔

@westerlund
Copy link
Collaborator

But at that point, they'll have to release a new version of their app! I think you're perfectly safe with mocking all the endpoints. You can just anonymize previous requests or just have the fields that you care about :)

@JagCesar
Copy link
Owner Author

@westerlund That's true. Let's start out that way, and then see where it takes us :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants