Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase in iOS project causing drop in code coverage numbers

Jenkins code coverage of my iOS project is let's say x%. If I comment the following line in app delegate,

[FIRApp configure];

the coverage increases by 5%.Any idea why? Also, How can I stop this line from being executed when the test are being run?

like image 884
frigocat Avatar asked Mar 20 '18 20:03

frigocat


1 Answers

Firebase adds a bunch of files to the app target causing a change in code coverage.

You can see this when you open up the coverage section and expand your target. I bet what is happening is when you add the line of code it knows you need to import Firebase, and is adding in those files, decreasing your code coverage.

like image 180
Jeremiah Avatar answered Oct 01 '22 06:10

Jeremiah