-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with many source files - Coverage data not found #32
Comments
Can you run with the debug flag? |
The similar problem ▸ Code Coverage **/ Caught: java.lang.RuntimeException: ✗ Coverage data not found java.lang.RuntimeException: ✗ Coverage data not found
|
@xxKRASHxx Have you set up your .xcodeproj to generate coverage? This is a manual step. Details in the guide. |
@xxKRASHxx I have the same error - I've followed the guide. |
@Guziq Can you please run with the debug ( |
As a note, coverage data exists as I see them in Xcode and was able to configure slather. Also, I am working with Xcode 8.3.3. |
@Guziq hmm, not finding coverage output. You definitely set the build flags of your application target in Xcode? |
and also probably this is not needed: I have just one target. I know its a lot to ask, but maybe you would be able to create an example project? |
https://github.com/appsquickly/Typhoon uses http://frankencover.it (actually we now use Travis for the CI builds). Sorry, I just noticed the error you're seeing. Likely the coverage output from Xcode has moved (again). Fixing, will report back soon. |
To Make Things Work git clone https://github.com/linux-test-project/lcov.git
cd lcov
sudo make install Confirm: Then all will be well. Sample Project
Sorry about the error. I'll make a note to update details on the website tomorrow. |
@jasperblues That's unfortunate, as I have lcov 1.13 and problem remains
|
@Guziq Maybe it is in fact bleeding edge that is required. I reproduced the error and fixed with:
Confirm For me, doing this and then running on the sample project (Typhoon) , solves the issue. Can you please try, let me know the results. |
Pretty strange, everything works with https://github.com/appsquickly/Typhoon. It seems like the script has troubles with finding correct coverage data in DerivedData, as I've created empty project (yet configured), did run the script and got stats from Typhoon:
|
Can you do With Typhoon, I got an error that looked like 'Coverage Data Not Found` - this is what the tool reported at least. In fact it was failing at the geninfo step of the following: def script = """\
|mkdir -p ${escapeSpecialCharacters(collationDir)}
|mkdir -p ${escapeSpecialCharacters(coverageData)}
|mkdir -p ${escapeSpecialCharacters(reportLocation.absolutePath)}/data
|find ${escapeSpecialCharacters(ideConfig.searchDirectories())} ${reportConfig.dataFileNames()} | rsync --files-from=- / ${escapeSpecialCharacters(collationDir)}
|find ${escapeSpecialCharacters(collationDir)} -type file -exec cp -fr {} ${escapeSpecialCharacters(coverageData)} \\;
|rm -fr ${escapeSpecialCharacters(collationDir)}
|geninfo ${escapeSpecialCharacters(coverageData)}/*.gcno --no-recursion --output-filename ${escapeSpecialCharacters(coverageInfoFile)}.temp
|lcov -r ${escapeSpecialCharacters(coverageInfoFile)}.temp ${excludeSymbols} > ${escapeSpecialCharacters(coverageInfoFile)}
|${genHtmlCmd}
|cp -R ${escapeSpecialCharacters(tempDir)}/* ${escapeSpecialCharacters(reportLocation.absolutePath)}/data
""".stripMargin()
Sounds like something else is failing in your case. Are you able to share a failing project? |
Btw, step above for Typhoon:
It should actually be: groovy http://frankencover.it/with -source-dir Source/ ^-- you supply the directly containing the sources you want coverage for. And the tests, or any process really will provide, or not, that coverage on the instrumented sources. I don't know why the former still worked. |
I know, but that was the step invoked on my test project (called test with source located in test/ dir) and yet the script picked the Typhoon for analysis. The result of
I can share this project, but it's just an empty one, generated from Xcode (with enabled testability, shared scheme and generated legacy test coverage files. |
Oh!? Something not right. Sure, if you have a project that reproduces the error, I can troubleshoot for you. |
I've added you to the project (Bitbucket) |
Thanks. I just have to finish some billable work, then will look tonight. (GMT+8) |
Really sorry - still haven't gotten to this. Promise to look soon. |
@jasperblues no worries :) ! |
😊 So (four years later) looks like the issue is too many input source files. For folks still using this - will see if I can fix it. Also looks like we can have Swift support now. |
Hey all,
This was all working a few months ago for me but has recently stopped and keeps throwing :
I'm using XCode 7.2.1 and lcov 1.12
The text was updated successfully, but these errors were encountered: