Is there an APNs stub available with Pushy for unit testing?

52 views
Skip to first unread message

Paul Brown

unread,
Aug 23, 2017, 5:19:57 AM8/23/17
to pushy
I was wondering if Pushy provide an APNs stub for use in unit tests, before I write my own one?
Thanks!

Paul Brown

unread,
Aug 23, 2017, 5:27:57 AM8/23/17
to pushy
I see that there is a MockApnsServer class, but am unsure if this is suitable for unit tests (docs mention integration tests, and also "most users will not need to interact with mock servers."

j...@turo.com

unread,
Aug 27, 2017, 3:43:05 PM8/27/17
to pushy
Yes, it's fine for unit tests (excluding philosophical concerns about where to draw the line between a "unit" and "integration" test). The warning that most users will not need to interact with mock servers is to let folks know that they don't need to use a mock server in the course of sending "real" push notifications. Most users will not write tests using the mock server, but there's no reason not to.

-Jon
Reply all
Reply to author
Forward
0 new messages