I've been using CoverStory for a while with Xcode logic tests and application tests quite happily until Mtn. Lion and Xcode 4.4. Now CoverStory displays a page full of /*EOF*/. I've tried using lcov and genhtml and they product output, but the executed lines are offset, and I'm not getting reliable results. What can I do to help diagnose and solve the issue, or is it simply a configuration issue on my part? Any ideas?
On Thu, Jul 26, 2012 at 1:43 PM, mhooge <mho...@gmail.com> wrote:
> I've been using CoverStory for a while with Xcode logic tests and
> application tests quite happily until Mtn. Lion and Xcode 4.4. Now
> CoverStory displays a page full of /*EOF*/. I've tried using lcov and
> genhtml and they product output, but the executed lines are offset, and I'm
> not getting reliable results. What can I do to help diagnose and solve the
> issue, or is it simply a configuration issue on my part? Any ideas?
I haven't looked at 4.4 yet, but the last few OS and Xcode releases Apple
has busted things in a new way each time. Start with a clean build just to
be safe, and then you may have to do a fair amount of digging/trouble
shooting to figure out what changed.
> --
> You received this message because you are subscribed to the Google Groups
> "coverstory-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/coverstory-discuss/-/HxvRuOdzSTgJ.
> To post to this group, send email to coverstory-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> coverstory-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/coverstory-discuss?hl=en.
> On Thu, Jul 26, 2012 at 1:43 PM, mhooge <mho...@gmail.com> wrote:
>> I've been using CoverStory for a while with Xcode logic tests and
>> application tests quite happily until Mtn. Lion and Xcode 4.4. Now
>> CoverStory displays a page full of /*EOF*/. I've tried using lcov and
>> genhtml and they product output, but the executed lines are offset, and I'm
>> not getting reliable results. What can I do to help diagnose and solve the
>> issue, or is it simply a configuration issue on my part? Any ideas?
> I haven't looked at 4.4 yet, but the last few OS and Xcode releases Apple
> has busted things in a new way each time. Start with a clean build just to
> be safe, and then you may have to do a fair amount of digging/trouble
> shooting to figure out what changed.
> TVL
>> Cheers,
>> Matt
>> --
>> You received this message because you are subscribed to the Google Groups
>> "coverstory-discuss" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/coverstory-discuss/-/HxvRuOdzSTgJ.
>> To post to this group, send email to coverstory-discuss@googlegroups.com.
>> To unsubscribe from this group, send email to
>> coverstory-discuss+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/coverstory-discuss?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "coverstory-discuss" group.
> To post to this group, send email to coverstory-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> coverstory-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/coverstory-discuss?hl=en.
I have been, and I've tried disabling them. I have figured out that I do get code coverage in some files and /*EOF*/ in others. Using lcov and genhtml produces output for the files that come up /*EOF*/ in CoverStory, but the listed lines seem to be wrong, like they are offset by an incorrect amount. Code that I know has executed is not listed as having been executed. gcovr is the same way, output is produced, but it seems to be off by lines. But I have limited experience debugging this workflow, CoverStory has been working solidly for me since I started with with back in December. If any of you wrote it, good job. If there is anything I can do to help, please, let me know. For the record, I've been using precompiled headers this whole time with no ill effects, not that this means anything at this point.
Can I rebuild the project with debugging or something? I checked the project out, but it wouldn't compile, there were some string formatting errors. I did not want to blindly dig in if I could find more information.
On Thursday, July 26, 2012 1:09:27 PM UTC-7, dmaclach wrote:
> Are you using precompiled headers? Those have caused issues in the past.
> Cheers, > Dave
> On Thu, Jul 26, 2012 at 10:45 AM, Thomas Van Lenten <thoma...@gmail.com> > wrote:
> > On Thu, Jul 26, 2012 at 1:43 PM, mhooge <mho...@gmail.com> wrote:
> >> I've been using CoverStory for a while with Xcode logic tests and > >> application tests quite happily until Mtn. Lion and Xcode 4.4. Now > >> CoverStory displays a page full of /*EOF*/. I've tried using lcov and > >> genhtml and they product output, but the executed lines are offset, and > I'm > >> not getting reliable results. What can I do to help diagnose and solve > the > >> issue, or is it simply a configuration issue on my part? Any ideas?
> > I haven't looked at 4.4 yet, but the last few OS and Xcode releases > Apple > > has busted things in a new way each time. Start with a clean build just > to > > be safe, and then you may have to do a fair amount of digging/trouble > > shooting to figure out what changed.
> > TVL
> >> Cheers,
> >> Matt
> >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "coverstory-discuss" group. > >> To view this discussion on the web visit > >> https://groups.google.com/d/msg/coverstory-discuss/-/HxvRuOdzSTgJ. > >> To post to this group, send email to > coverstory-discuss@googlegroups.com. > >> To unsubscribe from this group, send email to > >> coverstory-discuss+unsubscribe@googlegroups.com. > >> For more options, visit this group at > >> http://groups.google.com/group/coverstory-discuss?hl=en.
> > -- > > You received this message because you are subscribed to the Google > Groups > > "coverstory-discuss" group. > > To post to this group, send email to coverstory-discuss@googlegroups.com.
On Thu, Jul 26, 2012 at 8:02 PM, mhooge <mho...@gmail.com> wrote:
> I have been, and I've tried disabling them. I have figured out that I do
> get code coverage in some files and /*EOF*/ in others. Using lcov and
> genhtml produces output for the files that come up /*EOF*/ in CoverStory,
> but the listed lines seem to be wrong, like they are offset by an incorrect
> amount. Code that I know has executed is not listed as having been
> executed. gcovr is the same way, output is produced, but it seems to be off
> by lines. But I have limited experience debugging this workflow, CoverStory
> has been working solidly for me since I started with with back in December.
> If any of you wrote it, good job. If there is anything I can do to help,
> please, let me know. For the record, I've been using precompiled headers
> this whole time with no ill effects, not that this means anything at this
> point.
> Can I rebuild the project with debugging or something? I checked the
> project out, but it wouldn't compile, there were some string formatting
> errors. I did not want to blindly dig in if I could find more information.
> Thanks again for the assistance.
We just happened to be doing enabling a bunch with format strings checks
over in GTM, so that's what bubbled up here. Just did a quick fix for a
bunch of them, still two to go, but I gotta figure out the right way to let
the compiler know they are ok.
> On Thursday, July 26, 2012 1:09:27 PM UTC-7, dmaclach wrote:
>> Are you using precompiled headers? Those have caused issues in the past.
>> Cheers,
>> Dave
>> On Thu, Jul 26, 2012 at 10:45 AM, Thomas Van Lenten <thoma...@gmail.com>
>> wrote:
>> > On Thu, Jul 26, 2012 at 1:43 PM, mhooge <mho...@gmail.com> wrote:
>> >> I've been using CoverStory for a while with Xcode logic tests and
>> >> application tests quite happily until Mtn. Lion and Xcode 4.4. Now
>> >> CoverStory displays a page full of /*EOF*/. I've tried using lcov and
>> >> genhtml and they product output, but the executed lines are offset,
>> and I'm
>> >> not getting reliable results. What can I do to help diagnose and solve
>> the
>> >> issue, or is it simply a configuration issue on my part? Any ideas?
>> > I haven't looked at 4.4 yet, but the last few OS and Xcode releases
>> Apple
>> > has busted things in a new way each time. Start with a clean build
>> just to
>> > be safe, and then you may have to do a fair amount of digging/trouble
>> > shooting to figure out what changed.
>> >> To post to this group, send email to coverstory-discuss@**
>> googlegroups.com <coverstory-discuss@googlegroups.com>.
>> >> To unsubscribe from this group, send email to
>> >> coverstory-discuss+**unsubscribe@googlegroups.com<coverstory-discuss%2Bunsu bscribe@googlegroups.com>.
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "coverstory-discuss" group.
>> > To post to this group, send email to coverstory-discuss@**
>> googlegroups.com <coverstory-discuss@googlegroups.com>.
>> > To unsubscribe from this group, send email to
>> > coverstory-discuss+**unsubscribe@googlegroups.com<coverstory-discuss%2Bunsu bscribe@googlegroups.com>.
> To post to this group, send email to coverstory-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> coverstory-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/coverstory-discuss?hl=en.
On Thu, Jul 26, 2012 at 8:02 PM, mhooge <mho...@gmail.com> wrote:
> I have been, and I've tried disabling them. I have figured out that I do
> get code coverage in some files and /*EOF*/ in others. Using lcov and
> genhtml produces output for the files that come up /*EOF*/ in CoverStory,
> but the listed lines seem to be wrong, like they are offset by an incorrect
> amount. Code that I know has executed is not listed as having been
> executed. gcovr is the same way, output is produced, but it seems to be off
> by lines. But I have limited experience debugging this workflow, CoverStory
> has been working solidly for me since I started with with back in December.
> If any of you wrote it, good job. If there is anything I can do to help,
> please, let me know. For the record, I've been using precompiled headers
> this whole time with no ill effects, not that this means anything at this
> point.
CoverStory just invokes gcov under the hood, so it sorta sounds like Apple
may have new bugs in what they are shipping with Xcode 4.4. The bug can
either be in gcov or in clang (the compiler) when the instrumentation is
turned on, so if you have a simple example that shows it filing a bug with
Apple is gonna be the next step.
> Can I rebuild the project with debugging or something? I checked the
> project out, but it wouldn't compile, there were some string formatting
> errors. I did not want to blindly dig in if I could find more information.
> Thanks again for the assistance.
> Cheers,
> Matt
> On Thursday, July 26, 2012 1:09:27 PM UTC-7, dmaclach wrote:
>> Are you using precompiled headers? Those have caused issues in the past.
>> Cheers,
>> Dave
>> On Thu, Jul 26, 2012 at 10:45 AM, Thomas Van Lenten <thoma...@gmail.com>
>> wrote:
>> > On Thu, Jul 26, 2012 at 1:43 PM, mhooge <mho...@gmail.com> wrote:
>> >> I've been using CoverStory for a while with Xcode logic tests and
>> >> application tests quite happily until Mtn. Lion and Xcode 4.4. Now
>> >> CoverStory displays a page full of /*EOF*/. I've tried using lcov and
>> >> genhtml and they product output, but the executed lines are offset,
>> and I'm
>> >> not getting reliable results. What can I do to help diagnose and solve
>> the
>> >> issue, or is it simply a configuration issue on my part? Any ideas?
>> > I haven't looked at 4.4 yet, but the last few OS and Xcode releases
>> Apple
>> > has busted things in a new way each time. Start with a clean build
>> just to
>> > be safe, and then you may have to do a fair amount of digging/trouble
>> > shooting to figure out what changed.
>> >> To post to this group, send email to coverstory-discuss@**
>> googlegroups.com <coverstory-discuss@googlegroups.com>.
>> >> To unsubscribe from this group, send email to
>> >> coverstory-discuss+**unsubscribe@googlegroups.com<coverstory-discuss%2Bunsu bscribe@googlegroups.com>.
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups
>> > "coverstory-discuss" group.
>> > To post to this group, send email to coverstory-discuss@**
>> googlegroups.com <coverstory-discuss@googlegroups.com>.
>> > To unsubscribe from this group, send email to
>> > coverstory-discuss+**unsubscribe@googlegroups.com<coverstory-discuss%2Bunsu bscribe@googlegroups.com>.
> To post to this group, send email to coverstory-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> coverstory-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/coverstory-discuss?hl=en.
Well I worked on it with a fresh approach today, and I think I have it figured out. CoverStory is producing a lot of "cannot open source file" errors, and I hadn't put them together before. The /*EOF*/ matches up with the source file that can't be opened. I'm thinking Xcode has changed file permissions, or locations. I'm not using the DerivedData folders, and I'm passing in .gcda file locations in on the command line to coverstory 'open /path/to/gcda/ -a coverstory' so that may not work anymore.
On Thursday, July 26, 2012 10:43:32 AM UTC-7, mhooge wrote:
> I've been using CoverStory for a while with Xcode logic tests and > application tests quite happily until Mtn. Lion and Xcode 4.4. Now > CoverStory displays a page full of /*EOF*/. I've tried using lcov and > genhtml and they product output, but the executed lines are offset, and I'm > not getting reliable results. What can I do to help diagnose and solve the > issue, or is it simply a configuration issue on my part? Any ideas?
I'm definitely interested in the solution here, as I'm experiencing the same problem. For whatever reason CoverStory has the correct paths to my test source files, and also ONE of my source files under test. No idea why it finds one of source files. Anyway, I'm anxiously awaiting the fix to get CoverStory working with XCode 4.4 and ML. I can help test any beta builds if needed. Thanks
On Friday, July 27, 2012 1:33:07 PM UTC-4, mhooge wrote:
> Well I worked on it with a fresh approach today, and I think I have it > figured out. CoverStory is producing a lot of "cannot open source file" > errors, and I hadn't put them together before. The /*EOF*/ matches up with > the source file that can't be opened. I'm thinking Xcode has changed file > permissions, or locations. I'm not using the DerivedData folders, and I'm > passing in .gcda file locations in on the command line to coverstory 'open > /path/to/gcda/ -a coverstory' so that may not work anymore.
> On Thursday, July 26, 2012 10:43:32 AM UTC-7, mhooge wrote:
>> I've been using CoverStory for a while with Xcode logic tests and >> application tests quite happily until Mtn. Lion and Xcode 4.4. Now >> CoverStory displays a page full of /*EOF*/. I've tried using lcov and >> genhtml and they product output, but the executed lines are offset, and I'm >> not getting reliable results. What can I do to help diagnose and solve the >> issue, or is it simply a configuration issue on my part? Any ideas?
On Sunday, August 19, 2012 1:28:36 PM UTC-7, Andy Obusek wrote:
> I'm definitely interested in the solution here, as I'm experiencing the > same problem. For whatever reason CoverStory has the correct paths to my > test source files, and also ONE of my source files under test. No idea why > it finds one of source files. Anyway, I'm anxiously awaiting the fix to > get CoverStory working with XCode 4.4 and ML. I can help test any beta > builds if needed. Thanks
> On Friday, July 27, 2012 1:33:07 PM UTC-4, mhooge wrote:
>> Well I worked on it with a fresh approach today, and I think I have it >> figured out. CoverStory is producing a lot of "cannot open source file" >> errors, and I hadn't put them together before. The /*EOF*/ matches up with >> the source file that can't be opened. I'm thinking Xcode has changed file >> permissions, or locations. I'm not using the DerivedData folders, and I'm >> passing in .gcda file locations in on the command line to coverstory 'open >> /path/to/gcda/ -a coverstory' so that may not work anymore.
>> On Thursday, July 26, 2012 10:43:32 AM UTC-7, mhooge wrote:
>>> I've been using CoverStory for a while with Xcode logic tests and >>> application tests quite happily until Mtn. Lion and Xcode 4.4. Now >>> CoverStory displays a page full of /*EOF*/. I've tried using lcov and >>> genhtml and they product output, but the executed lines are offset, and I'm >>> not getting reliable results. What can I do to help diagnose and solve the >>> issue, or is it simply a configuration issue on my part? Any ideas?