Integration tests
This package contains the integration tests that run against JBoss AS 7 / EAP6 servers in standalone and domain mode.
Running
You can start the tests like this:
mvn verify -DskipTests=false -Pas7.itest -Das7.version=7.1.2.Final-redhat-1
If you have downloaded the server server already to a local directory, you can also point the test at the existing server by
passing -Das7.url
like this:
mvn verify -DskipTests=false -Pas7.itest -Das7.url=file:///devel/jboss-eap-6.0.0.ER8.zip -Das7.version=7.1.2.Final-redhat-1
Flags in detail
- -Ditest.debug: To remotely debug integration tests, you can pass
-Ditest.debug
- -DskipTests=false: do not skip tests
- -Pas7.itest: run the integration test (otherwise only the unit tests are run)
- -Das7.version: version that the server is reporting
- -Das7.url: url to fetch the server distro from. By default the server is fetched from remote and stored in a temporary directory. Giving this
flag instructs maven to fetch from the given url.
Subdirectories
- domain: test against a domain mode server
- nonpc : tests that don't go through the full plugin-container/resource container; copied over from older integration tests
- standalone: tests against a standalone server
Further reading
See also this the wiki page at
http://rhq-project.org/display/RHQ/Notes#Notes-IntegrationTests for more information