Hacker News new | past | comments | ask | show | jobs | submit login
Testing with Swift – Approaches and Useful Libraries (atomicobject.com)
36 points by philk10 on May 2, 2016 | hide | past | favorite | 4 comments



There's also Swiftest[1], a Swift BDD framework for both Mac and Linux, created and actively maintained by old colleague Brian, who's very passionate about Swift and knows it inside and out. It only works on the open source Swift version, so if that's what you're using, it's worth checking out.

[(inc 0)]: https://github.com/bppr/Swiftest


I think the largest challenge with Swift testing at the moment is the lack of easy mocking. You can define inline classes, but it's far inferior to the functionality that something like Kiwi provided for Objective-C.


There are a couple promising open source libraries here:https://realm.io/news/tryswift-veronica-ray-real-world-mocki...


Thanks for the link, I'll take a look.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: