Skip to content

Running the TCK

Ivar Grimstad edited this page Oct 11, 2020 · 2 revisions

Running the TCK

This page describes different way to run the MVC 1.0 TCK against Eclipse Krazo.

Command Line

First run a full build to make sure that latest snapshots are installed into the local Maven repository. That important, because Arquillian will use the latest snapshot available from the local repository to build the test archives.

cd $KRAZO_HOME
mvn -DskipTests clean install

Now you should start the container you want to execute the TCK against. How to do this depends on your target container. In case of Wildfly you should for example do this in a separate terminal:

cd $WILDFLY_HOME/bin
./standalone.sh

After your container has started up, go to the tck directory of Krazo and execute the following command:

mvn -Ptck-wildfly test surefire-report:report

Please note that you have to enable the profile for the corresponding target container (tck-wildfly, tck-glassfish, tck-liberty, etc).

If you want to run only as single TCK test, you can set the test system property to the FCQN of the test.

mvn -Ptck-wildfly -Dtest=org.mvcspec.tck.tests.events.MvcEventsTest test
Clone this wiki locally