You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2010/07/24 21:12:51 UTC

svn commit: r978927 - /openwebbeans/trunk/readme/TCK_RUNNING.txt

Author: gerdogdu
Date: Sat Jul 24 19:12:51 2010
New Revision: 978927

URL: http://svn.apache.org/viewvc?rev=978927&view=rev
Log:
[OWB-424] Adding Document for How to Configure and Run TCK (standalone and web profile TCKs)

Added:
    openwebbeans/trunk/readme/TCK_RUNNING.txt   (with props)

Added: openwebbeans/trunk/readme/TCK_RUNNING.txt
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/readme/TCK_RUNNING.txt?rev=978927&view=auto
==============================================================================
--- openwebbeans/trunk/readme/TCK_RUNNING.txt (added)
+++ openwebbeans/trunk/readme/TCK_RUNNING.txt Sat Jul 24 19:12:51 2010
@@ -0,0 +1,97 @@
+-----------------------------------------------------
+INTRODUCTION
+-----------------------------------------------------
+
+This document explains how to configure TCK artifacts
+to run standalone and web profile tcks.
+
+----------------------------------------------------
+REQUIREMENTS
+----------------------------------------------------
+
+1* Apache Tomcat 6 latest version.
+2* Copy the following jars into Tomcat lib/ folder
+  - geronimo-atinject_1.0_spec-1.0.jar
+  - geronimo-interceptor_1.1_spec-1.0.jar
+  - geronimo-jcdi_1.0_spec-1.0.jar
+  - openwebbeans-spi-1.0.0-SNAPSHOT.jar
+  - openwebbeans-tomcat6-1.0.0-SNAPSHOT.jar
+
+--------------------------------------------------
+TCK Configuration Files
+--------------------------------------------------
+There are two XML files that need to be updated for
+standalone and web profile testing.
+
+###################################################
+Standalone TCK Configuration
+###################################################
+
+############### jboss-test-harness.properties in webbeans-tck###############################
+org.jboss.jsr299.tck.spi.Managers=org.apache.webbeans.test.tck.ManagersImpl
+org.jboss.jsr299.tck.spi.Beans=org.apache.webbeans.test.tck.BeansImpl
+org.jboss.jsr299.tck.spi.Contexts=org.apache.webbeans.test.tck.ContextsImpl
+org.jboss.testharness.spi.StandaloneContainers=org.apache.webbeans.test.tck.StandaloneContainersImpl
+org.jboss.testharness.spi.Containers=org.apache.webbeans.test.tck.ContainersImpl
+org.jboss.jsr299.tck.spi.EL=org.apache.webbeans.test.tck.ELImpl
+org.jboss.testharness.standalone=true
+############################################################################################
+
+############## openwebbeans.properties in webbeans-tck######################################
+org.apache.webbeans.spi.JNDIService=org.apache.webbeans.corespi.se.DefaultJndiService
+org.apache.webbeans.spi.ScannerService=org.apache.webbeans.test.tck.mock.TCKMetaDataDiscoveryImpl
+org.apache.webbeans.spi.deployer.useEjbMetaDataDiscoveryService=true
+############################################################################################
+
+###################################################
+Web Profile TCK
+###################################################
+
+############### jboss-test-harness.properties in webbeans-tck###############################
+org.jboss.jsr299.tck.spi.Managers=org.apache.webbeans.test.tck.ManagersImpl
+org.jboss.jsr299.tck.spi.Beans=org.apache.webbeans.test.tck.BeansImpl
+org.jboss.jsr299.tck.spi.Contexts=org.apache.webbeans.test.tck.ContextsImpl
+org.jboss.testharness.spi.StandaloneContainers=org.apache.webbeans.test.tck.StandaloneContainersImpl
+org.jboss.testharness.spi.Containers=org.apache.webbeans.test.tck.ContainersImpl
+org.jboss.jsr299.tck.spi.EL=org.apache.webbeans.test.tck.ELImpl
+org.jboss.testharness.standalone=false
+org.jboss.testharness.libraryDirectory=target/dependency/lib
+org.jboss.testharness.runIntegrationTests=true
+org.jboss.testharness.api.TestLauncher=org.jboss.testharness.impl.runner.servlet.ServletTestLauncher
+############################################################################################
+
+############## openwebbeans.properties in webbeans-tck######################################
+org.apache.webbeans.spi.deployer.useEjbMetaDataDiscoveryService=false
+############################################################################################
+
+###########################################
+Running Standalone TCK From Maven 
+###########################################
+1* Do the above configuration
+2* Run "mvn clean test -Ptck" from webbeans-tck root
+
+##########################################
+Running WebProfile TCK From Maven
+##########################################
+1* Do the above configuration
+2* Open webbeans-tck/pom.xml
+3* Change "standalone-suite.xml" with "webprofile-suite.xml" in "maven-surefire-plugin"
+4* Change "tomcat.home" with your Apache 6 path in "maven-surefire-plugin"
+5* Run "mvn clean test -Ptck" from webbeans-tck root
+
+##############################################################
+Running and Debugging TCK Tests in Eclipse with TestNG Plugin
+##############################################################
+1* Download and setup TestNG plugin from testng.org/doc/eclipse.html
+2* Import webbeans-tck and other projects into Eclipse
+3* Open Run/Debug Configuration... in Eclipse
+4* Right Click to TestNG and Click New
+5* In opened window, select webbeans-tck as "Project" and standalone-suite.xml
+or webprofile-suite.xml as "Suite" file
+6* In opened window, click "Arguments" tab and add "-Dtomcat.home=/path/to/your/tomcat"
+in "VM Arguments"
+7* Click Debug
+
+-------------------------------------------------------------------------------------
+ENJOY!
+-------------------------------------------------------------------------------------

Propchange: openwebbeans/trunk/readme/TCK_RUNNING.txt
------------------------------------------------------------------------------
    svn:eol-style = native