Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Classes – Number of classes (including nested classes, interfaces, enums and annotations).
  • Comment lines – Number of lines containing either comment or commented-out code.
  • Comments (%) – Density of comment lines
  • Directories – Number of directories.
  • Files – Number of files.
  • Lines – Number of physical lines (number of carriage returns).
  • Lines of code – Number of physical lines that contain at least one character which is not whitespace or part of a comment.
  • Functions – Number of functions. Depending on the language, a function is either a function or a method or a paragraph.
  • Projects – Number of projects in a Portfolio.
  • Statements – Number of statements.

Tests

These metrics associated with unit tests include coverage-related measures such as condition coverage, i.e. whether the expressions were evaluated both to true and false for lines of code with Boolean expressions, expressed by line, by condition, by uncovered conditions, line coverage, i.e. portion of executable lines covered during the execution of the unit tests, number of lines of code which are not covered by unit tests. Characteristics directly related to unit test include the number of unit tests, skipped unit tests, the time required to execute all the unit tests, number of unit tests that have failed, number of unit tests that have failed with an unexpected exception, and percentage of unit tests passed without errors or failures.

...