directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Seelmann (JIRA)" <>
Subject [jira] [Commented] (DIRSTUDIO-1021) Enable tests
Date Sat, 28 Mar 2015 18:33:52 GMT


Stefan Seelmann commented on DIRSTUDIO-1021:

The default Eclipse and also Tycho way for tests it to have separate bundles or fragments.
See . Such tests are also
not executed in Maven's test phase but integration-test phase and startup an OSGi environment.

This blog shows a way
that allows to have unit tests in traditional Maven way. It works fine when building from
command line, all tests are executed. But if one wants to edit and run them within Eclipse
two manual steps per bundle are required (add src/test/java to source folders and add JUnit
to build path).

As we currently only have 21! unit test classes I'd recommend to try the 2nd approach for
them, otherwise we'd need to 8 additional test projects.

For integration tests (SWTBot) of course we need to create proper test bundles, I'll try to
do that.


> Enable tests
> ------------
>                 Key: DIRSTUDIO-1021
>                 URL:
>             Project: Directory Studio
>          Issue Type: Sub-task
>            Reporter: Stefan Seelmann
>             Fix For: 2.0.0-M9
> Unit test need to be moved to separate test bundles/fragments with packaging type eclipse-test-plugin,
> It would also be nice to reactivate the SWTBot tests, but that can be done later.

This message was sent by Atlassian JIRA

View raw message