Executing Tests

Previous Next Contents

5 Executing Tests

The Authorization 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.

5.1 Starting the tests

The Authorization TCK can be run from the command line in your shell environment.

Note

The mvn command referenced in the following two procedures and elsewhere in this guide is the Apache Maven build tool, which will need to be downloaded separately.

5.1.1 To Start Tests in Command-Line Mode

Start the Junit tests using the following command:

mvn verify

Example 5-1 Authorization TCK Signature Tests

To run the Authorization TCK signature tests, enter the following commands:

mvn -f authorization-signaturetest/pom.xml verify

Example 5-2 Single Test Directory

To run a single test directory, enter the following commands:

mvn -f app-custom-policy//pom.xml verify 

or alternatively 

mvn clean && mvn clean -pl :app-custom-policy/

Example 5-3 Single test

To run a single test with a single test directory, enter the following commands:

mvn clean && mvn clean install -pl :app-custom-policy -Dit.test=AppCustomPolicyIT#testAuthenticated

Example 5-4 Single test with debugging (GlassFish)

To run a single test with a single test directory with the JVM running GlassFish suspending on port 9009, enter the following commands:

mvn clean && mvn clean install -pl :app-custom-policy -Dit.test=AppCustomPolicyIT#testAuthenticated -Dglassfish.suspend

Example 5-5 Running a technology preview version of this TCK

A technology preview version may include dependencies that are in staging. If that is the case, start the Junit tests using the following command:

mvn verify -Pstaging

5.2 Running a Subset of the Tests

Use the following modes to run a subset of the tests:

To run a single test with a single test directory, enter the following commands:

mvn clean && mvn clean install -pl :app-custom-policy -Dit.test=AppCustomPolicyIT#testAuthenticated

5.3 Running the TCK Against another CI

Some test scenarios are designed to ensure that the configuration and deployment of all the prebuilt Authorization 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.

  1. Verify that you have followed the configuration instructions in Section 4.1, "Configuring Your Environment to Run the TCK Against the Compatible Implementation."

  2. If required, verify that you have completed the steps in Section 4.3.2, "Deploying the Prebuilt Archives."

  3. Run the tests, as described in Section 5.1, "Starting the tests," and, if desired, Section 5.2, "Running a Subset of the Tests."

5.4 Running the TCK Against a Vendor’s Implementation

This test scenario is one of the compatibility test phases that all Vendors must pass.

5.5 Test Reports

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
Eclipse Foundation Logo  Copyright © 2017, 2022 Oracle and/or its affiliates. All rights reserved.