Uploaded image for project: 'Eclipse Tools'
  1. Eclipse Tools
  2. ECLP-56

GenerateTest Cases - can't configure src and test folders if they don't follow naming conventions

    XMLWordPrintable

    Details

    • Complexity:
      Undetermined

      Description

      The generateTestCases plugin only supports these foldernames:

      from org.openmrs.behaviortestgenerator.SourcePathProperty.java:

      private static final String[] ALL_OPENMRS_DEFAULT_FOLDERS =

      { "src/api", "test/api", "src/web", "test/web" }

      ;

      Some (older?) projects don't follow the folder naming conventions. For example, HTMLFormEntry uses "src" and "test".

      In the Project > Properties > Generate Test Cases configuration page, nothing appears in the dropdowns for source and test. As a result, it's not possible to set the properties.

      An easy fix would be to add "src" and "test" to ALL_OPENMRS_DEFAULT_FOLDERS .

      A more complicated fix would be to show a list of all the folders, but I don't know the impact of that change.
      SourcePathProperty::isOpenMRSProject uses ALL_OPENMRS_DEFAULT_FOLDERS in its evaluation. This is called in things like createContents. What's the concern behind the check?

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jriley Janet Riley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: