Comments (17)
Xcode 7 generates coverage in a different file format.
More info in this article: https://www.bignerdranch.com/blog/weve-got-you-covered/
I'm keeping an eye on this: SlatherOrg/slather#89
from xcodecoverage.
the same issue.
from xcodecoverage.
the same issue.
from xcodecoverage.
the same issue
from xcodecoverage.
How are things with the lcov update, as of 77afcfc?
from xcodecoverage.
Jon,
Pulling from master, it looks like it is almost back. I had to make the lcov scripts executable and then added get_version.sh
from lcov to suppress the error created by this line.
It looks like the Line Data
count is off (the numbers are gigantic, 58411*10^7
, maybe an unsigned vs signed int issue) however the bigger issue I am experiencing is the cannot merge previous GCDA file: corrupt arc tag
console spam followed by a crash. It generates some of the gcda files so the getcov
script will process the ones available but (I believe) that crash is preventing the majority of the gcda files from being created.
The consensus after a couple of searches on how to solve the cannot merge
issue is to turn off instrumentation and code coverage support, which doesn't help us out. I will report back if I figure anything else out.
Also, thanks for your hard work on the project. You are fighting the good fight.
Michael
from xcodecoverage.
Hi Michael - where did you get get_version.sh from?
Also, I'm getting problems. I generate env.sh from within XCode, seemingly ok, then call getcov which starts a scan for GCDA files from the root /. Weird.
from xcodecoverage.
@bixbarton You can get get_version.sh
from the lcov project, the development version is here on github. Xcodecoverage uses lcov to convert the coverage data to HTML.
I have not seen the root scan issue that you describe.
from xcodecoverage.
Thanks Michael, I put that file in place and things run smoother. The root scan issue was my mistake, not setting the environment variables correctly.
Only issue I have now is that Xcode 7 isn't generating any GCDA files for this project. Utterly bizarre. Code Coverage is on, Legacy is on.
from xcodecoverage.
Ok, so the reason I'm not generating GCDA files is that INSTRUMENT_PROGRAM_FLOW is set to NO. But setting it to YES causes my test run to fail. Lots of "cannot merge previous GCDA file: corrupt arc tag" entries in the console, and it then crashes in main.m showing BAD_ACCESS on the line calling UIApplicationMain.
I cannot turn INSTRUMENT_PROGRAM_FLOW on for the main target, but without it, I cannot generate GCDA files.
Anyone have any ideas for this?
from xcodecoverage.
Is XcodeCoverage going to be updated to work with the LLVM-COV profdata file?
from xcodecoverage.
FYI -- I am seeing the same behavior @bixbarton describes with the crash in main.m. Confirmed on Xcode 7.2.
from xcodecoverage.
Thanks to everyone for investigating this while I was occupied elsewhere.
I've made the lcov scripts executable, and added the missing script. "Seems to work" so far on a library, but I haven't tried an app yet.
@bixbarton and @jstevenco, could you verify that you have the following enabled:
GCC_GENERATE_TEST_COVERAGE_FILES
CLANG_ENABLE_CODE_COVERAGE
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS
from xcodecoverage.
I can verify that Jon. All 3 are set to yes.
On Friday, 25 December 2015, Jon Reid [email protected] wrote:
Thanks to everyone for investigating this while I was occupied elsewhere.
I've made the lcov scripts executable, and added the missing script.
"Seems to work" so far on a library, but I haven't tried an app yet.@bixbarton https://github.com/bixbarton and @jstevenco
https://github.com/jstevenco, could you verify that you have the
following enabled:GCC_GENERATE_TEST_COVERAGE_FILES
CLANG_ENABLE_CODE_COVERAGE
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS—
Reply to this email directly or view it on GitHub
#40 (comment)
.
from xcodecoverage.
I was able to generate code coverage on our project which uses the iOS 9 SDK, but the lcov version in the current tagged release (which the pod references is wrong): #43.
from xcodecoverage.
Closing, at least for now.
from xcodecoverage.
Still I am getting coverage.info empty...Can some one help me please.
from xcodecoverage.
Related Issues (20)
- Excluding Files From Coverage .xcodecoverageignore HOT 5
- Code coverage in Xcode without tests (for manual run) HOT 1
- How can I show branch coverage or decision coverage? HOT 1
- Can there be an input which will enable the branch coverage too? HOT 1
- Xcode 8 Support HOT 4
- Can I dump the gcda that without line counter? HOT 1
- NAming convention to create .xcodecoverageignore HOT 1
- Unexpected number of functions & Unexpected number of edges HOT 1
- How to set IGNORED HOT 3
- How to check a pod(SDWebImage)coverage rate HOT 1
- when i run unit test and then run getcov it's given error HOT 1
- Unable to generate code coverage with Xcode 10 Beta HOT 5
- Swift support with xcode 9.4 HOT 1
- how to deal with the follow problem HOT 1
- Using xcodecoverage for the real device? HOT 1
- Unable to see coverage report in XCode 11.6 with new build system. HOT 1
- How to set the specified files to whitelist HOT 3
- No branch coverage after updating to 1.4 HOT 1
- Unable to see coverage report in XCode 12.4 with new build system
- Coverage data includes Apple's SDKs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcodecoverage.