JBoss Community Archive (Read Only)

WildFly 8

Shared Test Classes and Resources

Among Testsuite Modules

Use the testsuite/shared module.

Classes and resources in this module are available in all testsuite modules - i.e. in testsuite/* .

Only use it if necessary - don't put things "for future use" in there.

Don't split packages across modules. Make sure the java package is unique in the WildFly project.

Document your util classes (javadoc) so they can be easily found and reused!  A generated list will be put here.

Between Components and Testsuite Modules

To share component's test classes with some module in testsuite, you don't need to split to submodules.
You can create a jar with classifier using this:

        <executions> <execution>
            <goals> <goal>test-jar</goal> </goals>

This creates a jar with classifier "tests", so you can add it as dependency to a testsuite module:


JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 13:50:48 UTC, last content change 2013-12-17 01:22:49 UTC.