Uploaded image for project: 'SonarSlang'
  1. SonarSlang
  2. SONARSLANG-507

Add regression test to check language specific rules are in *CheckList

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8
    • Component/s: None
    • Labels:
      None

      Description

      When adding a language specific rule, one must add it in the <LANG>CheckList.java - remove the generic one and add a specific one to the list of checks to run.

      This step can easily be forgotten, and even if there is a language specific implementation with working unit tests, there's no integration test to make sure it actually gets called at runtime by the plugin.

      We should have on all plugins a regression test to make sure all Checks inside the plugin package are returned by the *CheckList.checks() method.

      We've done a similar thing for the .NET integration tests - see EnsureAllTestsRunBase.java

        Attachments

          Activity

            People

            Assignee:
            andrei.epure Andrei Epure
            Reporter:
            andrei.epure Andrei Epure
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: