Get Code Coverage Statistics IOS - ios

I am trying to get the code coverage statistics from the .gcda file.
I know similar questions are there but I did not get what I want then.
Till now, I got the .gcda files after some googling on how to do it.
Got Coverstory to read them. Now when I open one .gcda file it will give me the code coverage of that particular file.
Can any one tell me on how to get the statistics of the entire project in a form of matrix?
are there any tools available to read those gcda file and auto generate the report.
Are there any better way to get the code coverage?
Any sort of help would be really helpful

I find this to be very helpful.
Xcode code coverage

Try the Alcove gem:
https://github.com/ioveracker/alcove
Full disclosure: I'm the author of this gem. Please give it a try and let me know what you think.

Related

How to deobfuscate code in ios objective C?

I obfuscated my code using pp-ios-rename or ios-class-guard by following the steps in below link
https://github.com/preemptive/PPiOS-Rename
But when I try to deobfuscate my code, I couldnt do it and there is no support for that anywhere. Please help me in deobfuscating the code. Even my storyboard scenes got obfuscated, may be I have done something wrong in the process.
Thanks in Advance.
The repo suggests reverting to a previous commit as it looks like there's no automated way to undo it. You can reference the symbols.map file to see the mappings.
If you still have this file you could try inverting the obfuscated names with the original names then running this command:
ppios-rename --obfuscate-sources --symbols-map symbols.map
However, this kind of source obfuscation is not normally recommended due to these kind of significant trade-offs, unless running it as part of an automated CI/CD pipeline.

Error Parsing .dae (Collada) file... cannot find issue

For the past couple of weeks I've been working on creating a custom Collada exporter for Revit Architecture, based on the example give here. In order to ensure that my output is correct, I'm comparing it to the output generated by the Revit to Lumion Bridge. I've gone though the files a half-dozen times or more and, aside from the way I name my elements, I cannot find any ways in which my export differs from theirs. For some reason, however, theirs imports just fine and mine doesn't. I'm building this for use with Unity, but I've also tried it with 3ds max and Blender, with the same results in each program.
I was hoping someone could point me in the direction of a Collada debug tool, or that someone may be able to look through the two files and see if they can find something I've missed.
Custom Exporter Output: Custom Exporter.dae
Revit to Lumion Bridge Output: Revit to Lumion Bridge.dae
Thanks in advance for any help, this is really giving me a headache >_>
One thing you can try is schema validation. If you run xmllint on your file, it might discover the problem. This only finds errors that violate the schema though, so it won't catch all problems.

Exclude files in coverstory while checking code coverage

I just tried to check the code coverage using cover story in Xcode 4.6 and I am able to generate .gcda and .gcno files and check the overall and individual coverage of each file.
But, I want to exclude some classes in the cover story while checking the code coverage. I am not able to do so as it is again covering all the classes. I tried to exclude files from:
CoverStory->Preferences->SDK Files ........and included the file I want to exclude. But it is not working.
I followed this link : http://iosunittesting.com/configuring-coverstory/
Can anyone please help me out.
I know its a bit late but I just wanted to let you know that I got the solution. The problem that I was facing was probably due to the Xcode corruption. So, as soon as I reinstalled the Xcode, it started working fine and I was able to check the code coverage of the individual files through cover story.

Can any one tell me in which jar file I can find the de.enough.polish.ui.Command?

Hi Everyone I am working on J2ME polish project, which is just an enhancement project. I have no idea about J2ME Polish. I have an error saying that the
import de.enough.polish.ui.Command cannot be resolved. So can any one tell me where can I find that. I have tried googling but could not find it.
You should download j2meploish once downloaded and installed you should look in the $installdirectory/source/j2mepolish-client.jar or something with the word client in.
You should take a look at this website, they probably have the library you are looking for.

How do I get XCode4 to find libgcov.a

I've been building a static library to share between multiple iOS projects, and I want to use gcov (or any code coverage analysis tool) to tell me where I'm missing my tests. However, when I enable gcov by following these directions: http://supermegaultragroovy.com/blog/2005/11/03/unit-testing-and-code-coverage-with-xcode/
I get this error from Libtool:
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: can't locate file for: -lgcov
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: file: -lgcov is not an object file (not allowed in a library)
For some reason XCode4 can't find the libgcov.a file. It is in many places on my system but for some reason it can't be found. I'm fairly new to XCode, and gcc based programming in general, so I'm not sure how I can fix this, my guess is that I just have to tell it specifically where to find libgcov.a but I'm not sure how to go about that.
Looks like I found a solution. Crazy XCode seems to treat static libraries completely different when invoking gcc. And I thought MSBuild was a build system from hell... it's a snap and at least there are books about it.
Anyway, here's how you do it:
Add $(PLATFORM_DEVELOPER_USR_DIR)/lib to your "Library Search Paths" build setting for your static library and tick the "Recursive" check box.
Works for me, let me know if it works for you.
This may help in solving your issue, have a look in to it
GTM

Resources