Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2368

ServerSetup utility - more flexible way of setting up the server-side of integration tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Testing
    • None

    Description

      I need a more flexible way of setting up Sling-based servers for integration testing, that allows the various phases of the server setup (start runnable jar, wait for it to be ready, install additional bundles, create test content etc) to be selectively run or ignored.

      This is useful when such server setups are slow, for example when testing upgrades from one Sling-based system to another, which means starting an old version, setting up some content on it, stopping it, starting the new version, running tests on it to check that the test content was preserved or suitably adapted, etc.

      Being able to selectively disable setup tasks allows for restarting tests from saved states, which is often much faster than redoing the whole setup when debugging the resulting system or its tests.

      I'll create the corresponding utilities under testing/tools and use them in testing/samples as an example.

      Attachments

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: