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

Import of Generic Tests data shouldn't fail if a file has no recognized language

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.2
    • Component/s: Scanner
    • Labels:
    • Edition:
      Community
    • Production Notes:
      None

      Description

      The parser of generic test execution and generic test coverage reports fails if it finds data about a test file that doesn't have a recognized language.
      This can happen if the scanner is not configured to exclude certain files that are not supported by the analyzers installed in SonarQube. In that case, if the report being imported refers to those files, the scanner will fail.
      We should give a warning instead of failing.

      Error during parsing of the generic coverage report  'coverage_report'.  Look at SonarQube documentation to know the expected XML format.                                                                      
      Caused  by: java.lang.IllegalStateException: Line 1632 of report refers to a  file with an unknown language: file.cc                                                                                                                                                                                                 
              at  org.sonar.api.utils.Preconditions.checkState(Preconditions.java:61)     
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              duarte.meneses Duarte Meneses
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: