Moya: why sample data function is required ?

Created on 5 Jul 2016  路  7Comments  路  Source: Moya/Moya

Hello,

why sample data function is required ? and not optional ?

thanks.

Most helpful comment

Well it's way more than just me! The entire Ello team - from devs to marketing to leadership - were all very much a part of the decision to open source and the process that got us there.

So on behalf of everyone at Ello: happy to help!

All 7 comments

To encourage better testing strategies 馃憤

@AsimNet Worst case:

var sampleData: NSData {
  return NSData()
}

...But as @orta said, mostly for testing. You don't realize how great it is until you start writing your tests.

Are there any good examples of how people have setup testing for their apps?

The Ello iOS app makes very heavy use of sampleData https://github.com/ello/ello-ios

Woah - thank you for open sourcing @colinta 馃帀

Well it's way more than just me! The entire Ello team - from devs to marketing to leadership - were all very much a part of the decision to open source and the process that got us there.

So on behalf of everyone at Ello: happy to help!

OK to close?

Was this page helpful?
0 / 5 - 0 ratings