Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

code coverage with gcovr and Xcode 5 is not working

I'm using gcovr to generate code coverage for cobertura. Everything was working fine with xcode 4.6. Now I updated to xcode5 and everything I get is 0% coverage...

my setup:

  • gcovr 3.0
  • Xcode 5 (Apple LLVM 5)
  • 'Generate Test Coverage Files' is set to YES
  • 'Instrument Program Flow' is set to YES

and to command I use:

gcovr -r . --object-directory Build/Intermediates/myApp.build/Debug-iphonesimulator/myApp.build/Objects-normal/i386 --exclude '.*Tests.*' --exclude '.*KiwiUnitTest' --exclude '.*main.*' --xml > reports/coverage.xml

is someone having the same issue or better, have a solution? :)

like image 830
Alex Avatar asked Oct 01 '13 09:10

Alex


1 Answers

And now it works again... :)

as @kenji said, Xcode 5.1 solved the problem. thx btw

here is my working environment and configuration for the one who are interested

  • Xcode 5.1.1 (from the AppStore)
  • gcovr 3.1-prerelease (installed with easy_install)

and in my project under 'Build Settings' I set the following:

  • 'Generate Test Coverage Files' is set to YES
  • 'Instrument Program Flow' is set to YES

after I run the tests, I execute the following command: (happens with jenkins)

gcovr -r . --object-directory Build/Intermediates/MyProj.build/Debug-iphonesimulator/KiwiUnitTest.build/Objects-normal/i386 --exclude '.*Tests.*' --exclude '.*KiwiUnitTest' --exclude '.*main.*' --xml > reports/coverage.xml

done.

sorry guys for making you wait for an answer and thank you everyone for your help.

like image 100
Alex Avatar answered Nov 06 '22 03:11

Alex