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

Ease testability of InputFile virtual content

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: Scanner
    • Labels:
      None

      Description

      Provide a simple pattern for Sensor developers to test InputFile relying on virtual filesystem. For example it should be possible when using SensorContextTester/TestInputFileBuilder to create an InputFile with no physical existence, but InputFile::contents() and InputFile::inputStream() should return a pre-defined value.
      TestInputFileBuilder should provide a static "create()" factory method.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: