Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12857

Fundamental tests are not run - separate them on the level of JUnit categories

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Out of Date
    • Affects Version/s: 5.0.0.Alpha1
    • Fix Version/s: None
    • Component/s: build/distribution
    • Labels:
      None

      Description

      After refactoring of Java packages the fundamental tests are not in integration-test-specific packages anymore, which does not allow to filter them effectively: https://github.com/richfaces/richfaces5/blob/659dde9ba1f4e0d9ba912ff3a84dc885433caaf1/pom.xml#L515

      That's why most of the fundamental tests are not run anymore.


      I suggest to leave this concept and use JUnit Categories instead:

      • categorized tests can be either Smoke, Integration, Failing, etc.
      • un-categorized tests are considered to be unit tests and they are run as part of test run

      There is proof of concept how JUnit Categories works and how can be used by RichFaces framework modules:

      https://github.com/lfryc/surefire-and-junit-categories

      I suggest to move tests in src/test/integration to src/test/java.

      This will imply two things:

      • integration-tests profile will no longer manage project's dependencies
      • there will be cross-module shared interfaces for categories, e.g.: Smoke

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lfryc Lukáš Fryč
                Reporter:
                lfryc Lukáš Fryč
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: