开发者

SenTestingKit (integrated with XCode) versus GHUnit on XCode 4 for Unit Testing?

开发者 https://www.devze.com 2023-02-20 00:06 出处:网络
Any advice on which way to go regarding Unit Testing on XCode 4 out of SenTestingKit (the inbuild unit testing framework with XCode 4) and GHUnit?In particular:

Any advice on which way to go regarding Unit Testing on XCode 4 out of SenTestingKit (the inbuild unit testing framework with XCode 4) and GHUnit? In particular:

  • With the apparent improvements to Unit Testing in XCode 4 does this mean there are no major benefits of running with GHUnit?

  • Alternatively are there some in开发者_Go百科tegration benefits that make a smooth development process that could be achieved using XCode's unit testing framework (SenTestingKit) as opposed to GHUnit?


Greg, I answered your question on my blog, about 2 weeks late :). The conclusion I came to is the GHUnit isn't obsolete, but you should use SenTestingKit for new projects on Xcode 4.

http://longweekendmobile.com/2011/04/15/unit-testing-in-xcode-4-use-ocunit-and-sentest-instead-of-ghunit/


actually got some good feedback after also polling the apple forum community here https://devforums.apple.com/message/408448#408448


I don't have in depth knowledge of both the Testings, One thing I read about is you can subclass GHUnit to use SenTest or GTMTestCase. Read This. I guess you can write both the test cases using GHUnit and having UI makes it real simple and fun to use.

0

精彩评论

暂无评论...
验证码 换一张
取 消