Various testing tools, utilities and JUnit extensions for testing with a WildFly based server.
For complete documentation, see https://wildfly-extras.github.io/wildfly-testing-tools
To use the tooling you can simply import the Bill of Materials POM:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wildfly.testing</groupId>
<artifactId>wildfly-testing-tools-bom</artifactId>
<version>${version.org.wildfly.testing}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>The JUnit API contains annotations for skipping tests if minimal module requirements are not met. It also supports injecting the value of the JBoss Home directory. This can be used with JUnit 5+ and the WildFly JUnit Extension or WildFly Arquillian.
<dependency>
<groupId>org.wildfly.testing</groupId>
<artifactId>wildfly-junit-api</artifactId>
</dependency>This JUnit Extension manages the lifecycle of a WildFly based server. It starts a server and keeps it running until all tests have completed.
You can optionally deploy test applications per-test to the server. Only one deployment can be defined per-test.
<dependency>
<groupId>org.wildfly.testing</groupId>
<artifactId>wildfly-junit-extension</artifactId>
</dependency>The testing tools can be used to help create deployment descriptors or simple utilities for creating deployments. It can also create modules and delete created modules.
This can be used for any ShrinkWrap based testing.
<dependency>
<groupId>org.wildfly.testing</groupId>
<artifactId>wildfly-testing-tools</artifactId>
</dependency>Releasing the project requires permission to deploy to Maven Central see Maven Central Release Requirements.
Once everything is setup, you simply need to run the ./release.sh script. There are two required parameters:
-
-ror--releasewhich is the version you want to release -
-dor--developmentwhich is the next development version.
By default the release version cannot contain SNAPSHOT and the development version, must container SNAPSHOT.
./release -r 1.0.0.Final -d 1.0.1.Final-SNAPSHOT| Argument | Requires Value | Description |
|---|---|---|
|
Yes |
The next version for the development cycle. |
|
No |
Forces to allow a SNAPSHOT suffix in release version and not require one for the development version. |
|
N/A |
Displays this help |
|
Unused |
Passes the |
|
Unused |
Passes the |
|
Yes |
The version to be released. Also used for the tag. |
|
No |
Executes the release in as a dry-run. Nothing will be updated or pushed. |
|
No |
Prints verbose output. |
Any additional arguments are considered arguments for the Maven command.