[richfaces-issues] [JBoss JIRA] (RF-12857) Separate integration tests on the level of JUnit categories

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Mar 20 03:49:42 EDT 2013


Lukáš Fryč created RF-12857:
-------------------------------

             Summary: Separate integration tests on the level of JUnit categories
                 Key: RF-12857
                 URL: https://issues.jboss.org/browse/RF-12857
             Project: RichFaces
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: build/distribution
    Affects Versions: 5.0.0.M1
            Reporter: Lukáš Fryč
            Priority: Critical


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|https://github.com/lfryc/surefire-and-junit-categories/blob/master/src/test/java/category/Smoke.java]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list