home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / software / 5474 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.4 KB  |  64 lines

  1. Newsgroups: comp.software-eng
  2. Path: sparky!uunet!ukma!gatech!rpi!ghost.dsi.unimi.it!sisifo.arcetri.astro.it!sisifo!lfini
  3. From: lfini@sisifo (Luca Fini)
  4. Subject: Re: Tools for determining "code coverage"?
  5. Message-ID: <1993Jan28.080256.18104@arcetri.astro.it>
  6. Sender: news@arcetri.astro.it
  7. Organization: Osservatorio di Arcetri
  8. X-Newsreader: TIN [version 1.1 PL6]
  9. References: <WYNN.93Jan27145307@haduk.cms-stl.com>
  10. Date: Thu, 28 Jan 1993 08:02:56 GMT
  11. Lines: 51
  12.  
  13. Tim Wynn (wynn@cms-stl.com) wrote:
  14. :                                          .....    we are required to 
  15. : show the total number of lines of source code covered by the final 
  16. : acceptance test.  .....   we are lloking for a tool which will
  17. : tell us the number of source line which were executed during a
  18. : particular run.  
  19.  
  20. here's what you get with "man tcov" (at least on SunOS :-) I hope
  21. this helps.
  22.  
  23.  
  24.  
  25.  
  26. TCOV(1)                  USER COMMANDS                    TCOV(1)
  27.  
  28.  
  29.  
  30. NAME
  31.      tcov - construct test coverage  analysis  and  statement-by-
  32.      statement profile
  33.  
  34. SYNOPSIS
  35.      tcov [ -a ] [ -n ] srcfile...
  36.  
  37. AVAILABILITY
  38.      This command is available on Sun-3 and Sun-4 systems only.
  39.  
  40. DESCRIPTION
  41.      tcov produces a test  coverage  analysis  and  statement-by-
  42.      statement profile of a C or FORTRAN program.  When a program
  43.      in a file named file.c or file.f is  compiled  with  the  -a
  44.      option,  a  corresponding file.d file is created.  Each time
  45.      the program is executed, test coverage information is  accu-
  46.      mulated in file.d.
  47.  
  48.      tcov  takes  source  files  as  arguments.   It  reads   the
  49.      corresponding  file.d file and produces an annotated listing
  50.      of the  program  with  coverage  data  in  file.tcov.   Each
  51.      straight-line segment of code (or each line if the -a option
  52.      to tcov is specified) is prefixed with the number  of  times
  53.      it has been executed; lines which have not been executed are
  54.      prefixed with #####.
  55.  
  56.      ....
  57. +------------------------------------------------------------------------+
  58. | Luca Fini                                                              |
  59. | Osservatorio Astrofisico di Arcetri     Tel.   +55 2752 253            |
  60. | L.go E.Fermi, 5                         Fax.:  +55 220039              |
  61. | 50125 Firenze                           e-mail: lfini@arcetri.astro.it |
  62. | Italia                                                                 |
  63. +------------------------------------------------------------------------+
  64.