Wiki Markup |
---|
{scrollbar} |
MyFaces core provides a submodule for running integration tests in various environments and configurations. The module can be found at core/integration-tests. The different submodules of the integration-test module include different configurations and environments (e.g. servlet 2.5 and el 1.0 or servlet 3.0 and el 2.2).
The MyFaces core integration tests use the cargo maven plugin to start and stop different containers and use HtmlUnit to write the test cases against the running container.
Adding the profile "integration-tests" to the maven build will automatically add the integration-tests submodule and thus execute all integration-tests.
Code Block |
---|
mvn clean install -Pintegration-tests |
Just go to the desired integration-test module and execute a standard maven build lifecycle, e.g.
Code Block |
---|
cd integration-tests/servlet25-el10-basic-tests/ mvn clean install |
The cargo maven plugin provides a mojo for running a container with the given configuration until Ctrl+C is entered in the console (just like the jetty-maven-plugin).
Code Block |
---|
mvn clean package cargo:run |
TODO
Wiki Markup |
---|
{scrollbar} |