![]() ![]() Instead of Xcode Server, we rely on Jenkins for all our continuous integration needs.īefore Xcode 7, we already had code coverage reporting set up with Jenkins. Even with third party tools, like Buildasaur, it all just takes way too long for our massive mono-repo. There are multiple reasons for this but mainly it boils down to the fact that it simply does not work with our GitHub based workflow. However, at PSPDFKit, we do not use Xcode Server. If you are using Xcode Server then you will again get coverage reports directly inside your favorite Apple IDE. Luckily, Xcode 7 has you covered here as well. Unsurprisingly, we don’t run the full test suite locally very often. Typically, we are testing all the major iOS versions we support on both the iPhone and iPad. ![]() Our tests, even with ludicrous speed enabled, take about 10 minutes to complete for one configuration. Once your tests suite grows to something near the scale we are working at this can become harder than one might think. Check out WWDC 2015 Session 410 to learn more about this great Xcode 7 feature.Ĭode coverage data alone means nothing, if you are not constantly keeping track of it. Also, there’s no longer a need to use extra command line tools to convert the coverage data into something you can actually read. You no longer need to fiddle around with custom build configurations and hunt for the right compiler flags. All it takes is flipping a switch on the test action of your scheme and you are good to go.įor a simple project that is all you need to do. ![]() With the introduction of Xcode 7, Apple made it really easy to get started with code coverage. This is where code coverage comes into play. However, if we want to ensure that we are actually testing all the crucial code segments, we need a way to visualize what has been actually touched by our test code and what has not. Whenever you are dealing with a code base this large, it quickly becomes impossible to do effective work without the pleasant assurance of having a large test suite behind you, ensuring you are not doing more harm than good with your latest refactoring. Unit tests, UI automation tests, snapshot tests, you name it, we do it all. We at PSPDFKit are big believers in automated testing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |