Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-5212

Fix tests metric in multi-language project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3
    • Component/s: Scanner
    • Labels:
      None

      Description

      When a multi-language project is composed of several languages with a test sensor, there is a risk of crash of the analysis because test number measure will be saved multiple times on the root module.
      The conditions for the crash is that the project should have no tests for at least 2 language that support tests (for example Java + PHP), or 1 language with no test and at least one language with tests. In fact the only working configuration is when all languages have at least one test.

      Waiting for a major refactoring of how tests are supported in SQ, the proposed workaround is to exceptionally authorize to save multiple times the test metric (last one wins).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              henryju OLD - Julien HENRY
              Reporter:
              henryju OLD - Julien HENRY
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: