Whirr
  1. Whirr
  2. WHIRR-22

Separate unit and integration (system) tests

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: core
    • Labels:
      None

      Description

      It should be possible to run unit and integration tests independently of one another. Maven doesn't appear to have a convention for where to put integration tests (http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html), so we might use JUnit categories, or just Java packaging to segregate the two.

        Activity

        Hide
        Patrick Hunt added a comment -

        doing this would facilitate hudson/buildbot integration (run only the unit tests, that is unless/until we get mock provider support from jclouds)

        Show
        Patrick Hunt added a comment - doing this would facilitate hudson/buildbot integration (run only the unit tests, that is unless/until we get mock provider support from jclouds)
        Hide
        Tom White added a comment -
        Show
        Tom White added a comment - Maven Failsafe can be used to run integration tests: http://maven.apache.org/plugins/maven-failsafe-plugin/ . See also http://onjavahell.blogspot.com/2009/05/integration-testing-with-maven-20.html .
        Hide
        Tom White added a comment -

        This patch moves integration tests to packages ending with ".integration", these can be run with "mvn verify" (as well as setting the arguments for the cloud provider settings). There's now a unit test for RunUrlBuilder. Tests are run with "mvn test".

        Show
        Tom White added a comment - This patch moves integration tests to packages ending with ".integration", these can be run with "mvn verify" (as well as setting the arguments for the cloud provider settings). There's now a unit test for RunUrlBuilder. Tests are run with "mvn test".
        Hide
        Tom White added a comment -

        I've just committed this.

        Show
        Tom White added a comment - I've just committed this.

          People

          • Assignee:
            Tom White
            Reporter:
            Tom White
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development