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

Create better testing environment #61

Open
CaptainSpam opened this issue Oct 18, 2016 · 0 comments
Open

Create better testing environment #61

CaptainSpam opened this issue Oct 18, 2016 · 0 comments

Comments

@CaptainSpam
Copy link
Owner

As it currently stands, I'm just using real-world data to test Geohash Droid features. This works for most cases, but when I need to make sure something triggers (or does NOT trigger) when certain conditions are met, I currently have little choice but to wait until those conditions happen in the real world. Most notable would be the Known Locations feature, where I need to arrange a hashpoint to trigger notifications (as well as make sure neighboring graticules won't trigger if the graticule restriction option is set). As it stands, all I can do is just set up a cloud of Known Locations and hope one of them triggers, then check to see if it did what I wanted it to do.

The major problem here is the app's current strong dependency on the stock cache. Tossing in fake points for testing would invariably poison that cache with bogus data unless I take care to make sure the testing stuff never enters the cache (and never reads the cache, either). I'd need to rewrite significant parts in order to allow for testing hooks like that. It's plausible, just not the simplest thing I can think of.

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

1 participant