mvn verify
Executing Tests |
Previous | Next | Contents |
The Jakarta REST TCK uses the Junit and Jboss Arquillian frameworks to execute the tests.
This chapter includes the following topics:
Note
|
The instructions in this chapter assume that you have installed and configured your test environment as described in Chapter 3, "Installation," and Chapter 4, "Setup and Configuration,", respectively. |
As explained in Appendix B, "Packaging the Test Applications in Servlet-Compliant WAR Files With VI-Specific Information," the Jakarta REST TCK introduces the concept of repackaging the TCK tests.
Note
|
The Jakarta REST TCK is not depended on any particular build tool to run the tests. It will be convenient and advisable to create a Apache Maven project to setup and run the TCK. This chapter will henceforth use instructions and steps to provide setup with Apache Maven as a build tool. |
The Jakarta REST TCK can be run from the command line in your shell environment by executing the TCK jar.
Note
|
The |
Start the Junit tests using the following command:
mvn verify
Run the tests by excluding the optional jaxb tests using the following command:
mvn verify -DexcludedGroups="xml_binding"
Example 5-1 Jakarta REST TCK Signature Tests
To run the Jakarta REST TCK signature tests, enter the following commands:
mvn verify -Dit.test=ee.jakarta.tck.ws.rs.signaturetest.**
Example 5-2 Single Test Directory
To run a single test directory, enter the following commands:
mvn verify -Dit.test=ee.jakarta.tck.ws.rs.api.rs.get.**
Example 5-3 Subset of Test Directories
To run a subset of test directories, enter the following commands:
mvn verify -Dit.test=ee.jakarta.tck.ws.rs.api.**
Use the following modes to run a subset of the tests:
Some test scenarios are designed to ensure that the configuration and deployment of all the prebuilt Jakarta REST TCK tests against one Compatible Implementation are successful operating with other compatible implementations, and that the TCK is ready for compatibility testing against the Vendor and Compatible Implementations.
Verify that you have followed the configuration instructions in Section 4.1, "Configuring Your Environment to Run the TCK Against the Compatible Implementation."
If required, verify that you have completed the steps in Section 4.3.2, "Deploying the Prebuilt Archives."
Run the tests, as described in Section 5.1, "Starting the tests," and, if desired, Section 5.2, "Running a Subset of the Tests."
This test scenario is one of the compatibility test phases that all Vendors must pass.
Verify that you have followed the configuration instructions in Section 4.2, "Configuring Your Environment to Repackage and Run the TCK Against the Vendor Implementation."
If required, verify that you have completed the steps in Section 4.3.3, "Deploying the Test Applications Against the Vendor Implementation."
Run the tests, as described in Section 5.1, "Starting the tests," and, if desired, Section 5.2, "Running a Subset of the Tests."
A set of report files is created for every test run. These report files can be found in the target directory that the test is run. After a test run is completed, the Junit framework writes reports for the test run.
Previous | Next | Contents |