We could try to overwrite PaxExam as suggested in

https://vzurczak.wordpress.com/2015/01/19/skip-tests-with-pax-exam/

Cheers,
Stefan

On 11/03/16 15:47, "Bertrand Delacretaz" <[email protected]> wrote:

>On Fri, Mar 11, 2016 at 3:15 PM, Stefan Egli <[email protected]>
>wrote:
>>>On 11/03/16 14:47, "Bertrand Delacretaz" <[email protected]> wrote:
>>>>  @Before
>>>>  public void checkSlowTests() {
>>>>    assumeNotNull(System.getProperty("sling.slow.tests.enabled"));
>>>>  }
>>>
>>>+1, simple and effective...
>
>Unfortunately that's not effective with tests that use the PaxRunner,
>as the @Before method is called after setting up the test OSGi
>framework. So tests disabled in this way still take a few seconds to
>run, and PaxRunner doesn't support @BeforeClass.
>
>I guess JUnit classes is the clean way to handle this.
>
>-Bertrand


Reply via email to