You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2017/05/05 13:01:04 UTC

[jira] [Updated] (SLING-5598) Exclude slow tests by default with assume(sling.slow.tests.enabled)

     [ https://issues.apache.org/jira/browse/SLING-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Egli updated SLING-5598:
-------------------------------
    Fix Version/s:     (was: Discovery Oak 1.2.18)
                       (was: Discovery Impl 1.2.12)
                       (was: Discovery Base 1.1.8)
                       (was: Discovery Commons 1.0.20)
                   Discovery Oak 1.2.20
                   Discovery Impl 1.2.14
                   Discovery Base 1.1.10
                   Discovery Commons 1.0.22

> Exclude slow tests by default with assume(sling.slow.tests.enabled) 
> --------------------------------------------------------------------
>
>                 Key: SLING-5598
>                 URL: https://issues.apache.org/jira/browse/SLING-5598
>             Project: Sling
>          Issue Type: Task
>          Components: Extensions
>    Affects Versions: Discovery Impl 1.2.6, Discovery Base 1.1.2, Discovery Commons 1.0.10, Discovery Oak 1.2.6
>            Reporter: Stefan Egli
>             Fix For: Discovery Commons 1.0.22, Discovery Base 1.1.10, Discovery Impl 1.2.14, Discovery Oak 1.2.20
>
>         Attachments: SLING-5598-commons-testing.patch, SLING-5598-discovery.patch
>
>
> As suggested by [~bdelacretaz] on [the list|http://markmail.org/message/yad5awqg53epk3ck] 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:
> {noformat}
> @Before
> public void checkSlowTests() {
>     assumeNotNull(System.getProperty("sling.slow.tests.enabled"));
> }
> {noformat}
> and to enable the slow tests you do: {{mvn -Dsling.slow.tests.enabled=true clean test}}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)