vendredi 4 septembre 2015

Swift mocking/stubbing framework

I have a Swift 2.0 class I'd like to test and need to assert that some methods are called. In order to do so I wanted to use a mocking framework like OCMock.

Unfortunately, on the OCMock website its stated that the tests still would need to be written in plain Objective-c (since OCMock appears to be not fully swift compatible yet) and that no method calls can be expected on Swift classes.

Are there any native Swift frameworks I could use to achieve that? Or should I write my tests completely different?

Aucun commentaire:

Enregistrer un commentaire