home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!ukma!gatech!rpi!ghost.dsi.unimi.it!sisifo.arcetri.astro.it!sisifo!lfini
- From: lfini@sisifo (Luca Fini)
- Subject: Re: Tools for determining "code coverage"?
- Message-ID: <1993Jan28.080256.18104@arcetri.astro.it>
- Sender: news@arcetri.astro.it
- Organization: Osservatorio di Arcetri
- X-Newsreader: TIN [version 1.1 PL6]
- References: <WYNN.93Jan27145307@haduk.cms-stl.com>
- Date: Thu, 28 Jan 1993 08:02:56 GMT
- Lines: 51
-
- Tim Wynn (wynn@cms-stl.com) wrote:
- : ..... we are required to
- : show the total number of lines of source code covered by the final
- : acceptance test. ..... we are lloking for a tool which will
- : tell us the number of source line which were executed during a
- : particular run.
-
- here's what you get with "man tcov" (at least on SunOS :-) I hope
- this helps.
-
-
-
-
- TCOV(1) USER COMMANDS TCOV(1)
-
-
-
- NAME
- tcov - construct test coverage analysis and statement-by-
- statement profile
-
- SYNOPSIS
- tcov [ -a ] [ -n ] srcfile...
-
- AVAILABILITY
- This command is available on Sun-3 and Sun-4 systems only.
-
- DESCRIPTION
- tcov produces a test coverage analysis and statement-by-
- statement profile of a C or FORTRAN program. When a program
- in a file named file.c or file.f is compiled with the -a
- option, a corresponding file.d file is created. Each time
- the program is executed, test coverage information is accu-
- mulated in file.d.
-
- tcov takes source files as arguments. It reads the
- corresponding file.d file and produces an annotated listing
- of the program with coverage data in file.tcov. Each
- straight-line segment of code (or each line if the -a option
- to tcov is specified) is prefixed with the number of times
- it has been executed; lines which have not been executed are
- prefixed with #####.
-
- ....
- +------------------------------------------------------------------------+
- | Luca Fini |
- | Osservatorio Astrofisico di Arcetri Tel. +55 2752 253 |
- | L.go E.Fermi, 5 Fax.: +55 220039 |
- | 50125 Firenze e-mail: lfini@arcetri.astro.it |
- | Italia |
- +------------------------------------------------------------------------+
-