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

Exclude slow tests by default with assume(sling.slow.tests.enabled)

    XMLWordPrintableJSON

Details

    Description

      As suggested by bdelacretaz on the list we should improve test duration (ideally 1-2min per bundle max, 10-15min overall). While they are not yet improved however, slow tests should be excluded by default and run only if enabled explicitly. Here's an example @Before method to achieve that:

      @Before
      public void checkSlowTests() {
          assumeNotNull(System.getProperty("sling.slow.tests.enabled"));
      }
      

      and to enable the slow tests you do: mvn -Dsling.slow.tests.enabled=true clean test

      Attachments

        1. SLING-5598-commons-testing.patch
          2 kB
          Stefan Egli
        2. SLING-5598-discovery.patch
          48 kB
          Stefan Egli

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: