Uploaded image for project: 'Rules Repository'
  1. Rules Repository
  2. RSPEC-1482

Branches should have sufficient coverage by unit tests

    Details

    • Type: Code Smell Detection
    • Status: Active
    • Resolution: Unresolved
    • Labels:
    • Message:
      Add tests to cover this branch.
    • List of parameters:
      • key = minimumBranchCoverageRatio
      • description = The minimum required branch coverage ratio.
      • default = 65.0
    • Default Severity:
      Critical
    • Impact:
      High
    • Likelihood:
      Low
    • Legacy Key:
      InsufficientBranchCoverage
    • Targeted languages:
      VB6
    • Covered Languages:
      ABAP, C#, C, C++, Cobol, Flex, Java, JavaScript, Objective-C, PHP, PL/I, PL/SQL, Python, RPG, Swift, VB.Net
    • Remediation Function:
      Linear
    • Linear Argument Description:
      per uncovered condition
    • Linear Factor:
      5min
    • Analysis Scope:
      Main Sources

      Description

      An issue is created on a file as soon as the branch coverage on this file is less than the required threshold. It gives the number of branches to be covered in order to reach the required threshold.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freddy.mallet Freddy Mallet (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: