Thanks in advance.
Ashish
The Tcl Dev Kit provides code coverage functionality:
http://www.activestate.com/Tcl
--
Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
Jeff,
I am trying to use the code coverage functionality in the Tcl Dev Kit
debugger, but I
can not seem to get it to work. My application is a mixed bag of C/Tcl
code (we use a
lot of incrTcl) and I am using Remote Debugging. I have turned on Code
Coverage in
the project settings, but when I bring up the Code Coverage Dialog, it
does not contain
any data. Nothing is shown under Files or Calls. I do notice that my
main tcl file shown
in the source window is now shown in Green (default color for uncalled
code). I do know
that this code was executed when I clicked on the run arrow.
I can set breakpoints and look at the contents of variables, but I
right now I am stumped on
the code coverage tool. This is Tcl Dev Kit 3.2.
Did I miss turning on a checkbox or something? Or does this beast not
work with remote
debugging and/or mixed C/Tcl code?
Thanks,
John Hughes
Has anyone used this functionality to see how well the Tcl test suite
(and the Tk test suite) covers the tcl (and tk) code?
Let me know if this wasn't solved in the support channel.
I haven't gone through the core test suite, since that tests 99% C and
just a bit of Tcl (OK, obviously an important bit), but we have run it
over large parts of tcllib.
Have any tools available to perform coverage of the C parts of Tcl and
Tk been used?
Just curious how much of the code is currently tested.
I figured out my problem. It was pilot error on my part. I seemed to
forget how
my product works and was not debugging (code coverage) in a realistic
manner.
I tightened the loose nut behind the keyboard and it works now! ;-p
John
Something like PureCov? Not that I know of. Occasional Purify and
valgrind runs are made over the core, and there are the Coverity reports
for which we fix issues as they are reported.
Sigh. I tried, this morning, to set up the Tcl Makefile to use the Sun
C compiler coverage tool. Alas, when I got to the point of creating
libtcl.so, it failed, because it uses ld directly instead of cc, and cc
supposedly adds some coverage libraries or something that are necessary
- I got a long string of linker error msgs . Oh well, I just thought if
I could spend 20 minutes making the changes and running the tcl 8.5
test suite to get a coverage report, it might be useful.