This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
refs #1491: metrics testing - #1517
Merged
Merged
Conversation
This was referenced May 12, 2015
Closed
Contributor
There was a problem hiding this comment.
#1491 turns -[MGLMapboxEvents flushAfter] into a constant, MGLFlushInterval, because it wasn’t being modified anywhere at runtime. I’m fine with exposing the constant to these tests, but given that modifying the flush interval will no longer be supported, it won’t be necessary to test that case.
Contributor
Author
There was a problem hiding this comment.
Yeah, I did this just to cut down on testing time. Not a big deal.
Contributor
|
Looks good from here. |
Contributor
Author
|
Going to squash & merge these into
|
incanus
added a commit
that referenced
this pull request
May 12, 2015
refs #1491: iOS metrics testing
incanus
added a commit
that referenced
this pull request
May 13, 2015
refs #1491: iOS metrics testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before landing #1491, we should be thinking about better metrics testing. This is a start towards testing various functionality in
MGLMapboxEventsto:So far it tests a couple things we've been leaving uncovered:
I am using the popular OCMock to test this functionality.
Things still to test:
We can likely use OHHTTPStubs for this network testing.
Lastly, I turned up #1516 along the way and my last test (
testPushEventAddsToEventQueue) is currently broken as a result./cc @bleege @1ec5