home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.software-eng
- Path: sparky!uunet!ftpbox!mothost!lmpsbbs!comm.mot.com!davidal
- From: davidal@comm.mot.com (UK702 DavidAlexander)
- Subject: Re: Value of High Code Coverage Metrics in Testing - Request for Opinion
- Organization: Motorola Land Mobile Products Sector
- Date: Mon, 14 Dec 1992 09:58:03 GMT
- Message-ID: <1992Dec14.095803.15093@lmpsbbs.comm.mot.com>
- References: <1992Dec14.072812.13689@syacus.acus.oz.au>
- Sender: news@lmpsbbs.comm.mot.com (Net News)
- Nntp-Posting-Host: 145.16.3.73
- Lines: 55
-
- In article <1992Dec14.072812.13689@syacus.acus.oz.au>, paulb@syacus.acus.oz.au (Paul Bandler) writes:
-
- <preamble deleted>
-
- |> I believe we have a tool to measure the %BFA 'Branch Flow Analysis' but
- |> of course the engineers are responsible for producing the test cases to
- |> exercise the code.
- |>
- |> I have 3 questions:-
- |>
- |> 1) Do people think that this is a valuable metric?
- |> 2) Is it a cost effective excersize to get engineers to achieve a particular
- |> %BFA as a completion criteria?
- |> 3) What is a realistic %BFA to aim for?
- |> Paul Bandler
-
- BFA is a valuable tool for testing. %BFA, as with all unitless numbers, is
- of a more dubious nature.
-
- %BFA does not tell the person looking at it which paths were not tested
- and why. This is important because engineers could, subconsciously or
- otherwise, use their quota of untested branches to avoid testing the more
- complex/niggly areas of code.
-
- The nature of the testing is also important - only if you are programming
- in an interpreted language where syntax must be checked by execution,
- is executing every line of code useful by itself. (You can
- run through every branch of a square root function but it won't
- test for what happens with a negative parameter. There is always a
- temptation to say that a line i++ 'passes because it increments i' without
- checking when it shouldn't.)
-
- As to cost effectiveness this is so dependant upon the available tools,
- maintainance costs, whether or not testability was built into the code etc.
- that any global statement would be rash.
-
- A realistic %BFA target is again dependant upon specific circumstances.
- I don't know if anyone has done any work to find out the %age of
- defects found, against testing coverage and time taken but I would
- be interested to find out. The benefits of higher percentages are not
- linear and certainly peaks.
-
- Setting %BFA as a part of completion criteria is probably worthwhile but
- getting dogmatic about it is probably not. BFA is very useful for helping
- engineers see where more testing is required it is not that useful as an
- exam mark for the testing.
-
- -- David
-
- ========= All opinions are mine and not necessarily Motorola's ============
- = @mail : David Alexander, Channel Tunnel Software, Motorola, Lyon Way, =
- = Camberley (ZUK20), Surrey GU15 3QG, U.K. =
- = Email : (Internet) davidal@comm.mot.com Motorola X400-gateway : CDA004 =
- = Telephone : (office) +44 (0)276-413340 (home)+44 (0)276-24249 =
- ===========================================================================
-