Women in Technology

Hear us Roar



Article:
  Statement, Branch, and Path Coverage Testing in Java
Subject:   Tools for testing basis path coverage?
Date:   2007-03-06 09:23:00
From:   tibbetts
Joe, I saw only one tool mentioned in your article (EMMA). I haven't used it for about a year, but I do use cobertura (cobertura.sourceforge.net), and it doesn't have any support for calculating basis path coverage. Do you have some way to enforce that you're really covering all basis paths?
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Tools for testing basis path coverage?
    2007-12-05 08:38:23  TMcCabe [View]

    I know of hundreds of tools that calculate McCabe Cyclomatic. A handful that take a shot at generating basis path flowgraphs of the code and a few that attempt to measure basis path code coverage. Another suggestion for tools to consider can be found at the source.

    http://www.mccabe.com
  • Tools for testing basis path coverage?
    2007-03-07 05:46:58  jponczak [View]

    The good news is that you ARE tracking coverage, but you are right that EMMA and Cobertura do not support basis paths. Path coverage is somewhat difficult to determine, but there are some technologies out there that can help out.

    My company, Codign Sofware (www.codign.com) has an Eclipse plug-in that measures path and branch coverage for JUnit tests. It is available for free to open source and university students.

    I also *believe* that Agitar (www.agitar.com) calculates path coverage as well, but I have never used their products personally.