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

Qualifier is not updated when a file become a unit test (or vice versa)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 6.0
    • Component/s: Compute Engine
    • Labels:

      Description

      If you run a first analysis that consider all files as main source files and then tune your configuration to properly separate test files then file qualifier is not updated on server side.

      For example:

      • First analysis: sonar.sources=src/main/java,src/test/java
        • File src/test/java/Foo.java is created with qualifier FIL
      • Second analysis: sonar.sources=src/main/java sonar.tests=src/test/java
        • File src/test/java/Foo.java keep its qualifier FIL while I was expecting it to move to UTS.

        Attachments

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            julien.lancelot Julien Lancelot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: