Author: aheritier
Date: 2010-02-04 14:30:30 -0500 (Thu, 04 Feb 2010)
New Revision: 1688
Added:
jcr/trunk/README.txt
Modified:
jcr/trunk/exo.jcr.component.core/TCK.cmd
jcr/trunk/exo.jcr.component.core/TCK.sh
jcr/trunk/exo.jcr.component.core/pom.xml
jcr/trunk/exo.jcr.component.core/test-all.cmd
jcr/trunk/exo.jcr.component.core/test-dev.cmd
jcr/trunk/exo.jcr.component.core/test.cmd
Log:
EXOJCR-478 : Add a profile run-all to launch impl tests and TCK
Added: jcr/trunk/README.txt
===================================================================
--- jcr/trunk/README.txt (rev 0)
+++ jcr/trunk/README.txt 2010-02-04 19:30:30 UTC (rev 1688)
@@ -0,0 +1,13 @@
+JCR core
+========
+Goto JCR exo.jcr.component.core and call:
+mvn clean test - to run eXo JCR internal tests (all now)
+mvn clean test -Prun-all - to run eXo JCR internal tests + TCK (tck files are
automatically downloaded. No manual task needed).
+mvn clean test -Prun-tck - to run TCK only (tck files are automatically downloaded.
No manual task needed).
+mvn clean test -Prun-devtests - to run custom set of tests, useful for on-task
development.
+
+JCR Ext
+=======
+Goto JCR exo.jcr.component.ext and call:
+mvn clean test - to run eXo JCR Ext tests... tests set managed by
surefire-plugin configuration.
+
Property changes on: jcr/trunk/README.txt
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Modified: jcr/trunk/exo.jcr.component.core/TCK.cmd
===================================================================
--- jcr/trunk/exo.jcr.component.core/TCK.cmd 2010-02-04 19:07:32 UTC (rev 1687)
+++ jcr/trunk/exo.jcr.component.core/TCK.cmd 2010-02-04 19:30:30 UTC (rev 1688)
@@ -1,3 +1,3 @@
-@set MAVEN_OPTS=-Duser.language=en -Duser.region=us -Dmaven.test.skip=false
-DforkMode=once %MAVEN_OPTS%
+@set MAVEN_OPTS=-Duser.language=en -Duser.region=us %MAVEN_OPTS%
@start mvn clean install -Prun-tck
Modified: jcr/trunk/exo.jcr.component.core/TCK.sh
===================================================================
--- jcr/trunk/exo.jcr.component.core/TCK.sh 2010-02-04 19:07:32 UTC (rev 1687)
+++ jcr/trunk/exo.jcr.component.core/TCK.sh 2010-02-04 19:30:30 UTC (rev 1688)
@@ -1,2 +1,2 @@
-MAVEN_OPTS="-Duser.language=en -Duser.region=us -Dmaven.test.skip=false
-DforkMode=never -Dorg.exoplatform.jcr.monitor.jdbcMonitor $MAVEN_OPTS "
+MAVEN_OPTS="-Duser.language=en -Duser.region=us
-Dorg.exoplatform.jcr.monitor.jdbcMonitor $MAVEN_OPTS "
mvn clean test -Prun-tck
Modified: jcr/trunk/exo.jcr.component.core/pom.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core/pom.xml 2010-02-04 19:07:32 UTC (rev 1687)
+++ jcr/trunk/exo.jcr.component.core/pom.xml 2010-02-04 19:30:30 UTC (rev 1688)
@@ -354,9 +354,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <!-- normal mode: mvn -Dmaven.test.skip=false clean install -->
- <!-- debug mode: mvn -Dmaven.test.skip=false -DforkMode=never clean install
-->
- <!-- forking: to run both eXo test and TCK use forkMode=once, to run one of
them (only) in Eclipse debug use forkMode=never -->
<configuration>
<argLine>${env.MAVEN_OPTS}</argLine>
<systemProperties>
@@ -501,10 +498,10 @@
</plugins>
</build>
<profiles>
- <!-- ***************** -->
- <!-- INTEGRATION TESTS -->
- <!-- ***************** -->
- <!-- Use "mvn -Prun-tck" to launch them -->
+ <!-- *** -->
+ <!-- TCK -->
+ <!-- *** -->
+ <!-- Use "mvn -Prun-tck" to launch only them -->
<profile>
<id>run-tck</id>
<build>
@@ -521,11 +518,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
+ <!-- TAKE CARE TO UPDATE ALSO run-all PROFILE -->
<argLine>${env.MAVEN_OPTS}</argLine>
- <phase>test</phase>
- <goals>
- <goal>test</goal>
- </goals>
<systemProperties>
<property>
<name>jcr.test.configuration.file</name>
@@ -571,8 +565,107 @@
</plugins>
</build>
</profile>
- <!-- Use "mvn -Prun-devtests" to launch them -->
+ <!-- *** -->
+ <!-- ALL -->
+ <!-- *** -->
+ <!-- Use "mvn -Prun-all" to launch default tests and TCK -->
<profile>
+ <id>run-all</id>
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/TCK/java</directory>
+ <includes>
+
<include>**/org/apache/jackrabbit/test/api/nodetype/spec/*.txt</include>
+ </includes>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- TAKE CARE TO UPDATE ALSO run-tck PROFILE -->
+ <argLine>${env.MAVEN_OPTS}</argLine>
+ <systemProperties>
+ <property>
+ <name>jcr.test.configuration.file</name>
+ <value>${jcr.test.configuration.file}</value>
+ </property>
+ <property>
+ <name>emma.coverage.out.file</name>
+ <value>target/emma/coverage.ec</value>
+ </property>
+ <property>
+ <name>known.issues</name>
+
<value>org.apache.jackrabbit.test.api.SetValueConstraintViolationExceptionTest#testBooleanProperty
+
org.apache.jackrabbit.test.api.SetValueConstraintViolationExceptionTest#testMultipleBooleanProperty
+
org.apache.jackrabbit.test.api.version.RestoreTest#testRestoreName
+
org.apache.jackrabbit.test.api.version.RestoreTest#testRestoreOrder
+
org.apache.jackrabbit.test.api.version.RestoreTest#testRestoreOrder2
+
org.apache.jackrabbit.test.api.nodetype.PropertyDefTest#testIsRequiredType
+
org.apache.jackrabbit.test.api.SetPropertyConstraintViolationExceptionTest#testBooleanProperty
+
org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest#testShareable
+
org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest#testSimpleVersionable
+
org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest#testActivity
+
org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest#testConfiguration
+
org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest#testVersionable
+
org.apache.jackrabbit.test.api.nodetype.PredefinedNodeTypeTest#testVersion
+
org.apache.jackrabbit.test.api.NamespaceRegistryTest#testRegisterNamespace</value>
+ </property>
+ </systemProperties>
+ <includes>
+ <!-- From default tests -->
+
<include>org/exoplatform/services/jcr/api/**/Test*.java</include>
+
<include>org/exoplatform/services/jcr/usecases/**/Test*.java</include>
+
<include>org/exoplatform/services/jcr/usecases/**/*Test.java</include>
+
<include>org/exoplatform/services/jcr/impl/**/Test*.java</include>
+ <!-- From TCK -->
+ <include>org/apache/jackrabbit/test/api/*Test.java</include>
+
<include>org/apache/jackrabbit/test/api/observation/*Test.java</include>
+
<include>org/apache/jackrabbit/test/api/lock/*Test.java</include>
+
<include>org/apache/jackrabbit/test/api/nodetype/*Test.java</include>
+
<include>org/apache/jackrabbit/test/api/query/*Test.java</include>
+
<include>org/apache/jackrabbit/test/api/version/*Test.java</include>
+ </includes>
+ <excludes>
+ <!-- From default tests -->
+
<exclude>org/exoplatform/services/jcr/**/TestQueryUsecases.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/TestImport.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/TestRollbackBigFiles.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/TestErrorMultithreading.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/api/TestAll.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/api/**/TestSameNameItems.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/api/**/TestVersionRestore.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/api/**/TestSameNameItems.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/api/**/TestVersionRestore.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestWorkspaceManagement.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestRepositoryManagement.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestSaveConfiguration.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/ValueStoragePluginTest.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestWorkspaceRestore.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestSessionCleaner.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/Base*.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestJCRSerializationStream.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestJCRSerializationVersionRestore.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/usecases/**/RemoveSameNameSiblingTest.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/usecases/**/TestQueryWithNumberAndSpace.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/usecases/BaseUsecasesTest.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/usecases/**/ExportWorkspaceSystemViewTest.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestSessionDataManager.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/TestLinkedWorkspaceStorageCacheMetrics.java</exclude>
+
<exclude>org/exoplatform/services/jcr/**/impl/**/SQLBenchmarkTest.java</exclude>
+ <!-- From TCK -->
+
<exclude>org/apache/jackrabbit/test/api/TestAll.java</exclude>
+
<exclude>org/apache/jackrabbit/test/api/**/Abstract*.java</exclude>
+
<exclude>org/apache/jackrabbit/test/api/**/FrozenNodeTest.java</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
<id>run-devtests</id>
<build>
<plugins>
Modified: jcr/trunk/exo.jcr.component.core/test-all.cmd
===================================================================
--- jcr/trunk/exo.jcr.component.core/test-all.cmd 2010-02-04 19:07:32 UTC (rev 1687)
+++ jcr/trunk/exo.jcr.component.core/test-all.cmd 2010-02-04 19:30:30 UTC (rev 1688)
@@ -1,3 +1,3 @@
-@set MAVEN_OPTS=-Duser.language=en -Duser.region=us %MAVEN_OPTS% -Dmaven.test.skip=false
-DforkMode=once
+@set MAVEN_OPTS=-Duser.language=en -Duser.region=us %MAVEN_OPTS%
-@start mvn clean test -Prun-tck
\ No newline at end of file
+@start mvn clean test -Prun-all
\ No newline at end of file
Modified: jcr/trunk/exo.jcr.component.core/test-dev.cmd
===================================================================
--- jcr/trunk/exo.jcr.component.core/test-dev.cmd 2010-02-04 19:07:32 UTC (rev 1687)
+++ jcr/trunk/exo.jcr.component.core/test-dev.cmd 2010-02-04 19:30:30 UTC (rev 1688)
@@ -1,3 +1,3 @@
-@set MAVEN_OPTS=-Duser.language=en -Duser.region=us %MAVEN_OPTS% -Dmaven.test.skip=false
-DforkMode=never
+@set MAVEN_OPTS=-Duser.language=en -Duser.region=us %MAVEN_OPTS%
@start mvn clean test -Prun-devtests
\ No newline at end of file
Modified: jcr/trunk/exo.jcr.component.core/test.cmd
===================================================================
--- jcr/trunk/exo.jcr.component.core/test.cmd 2010-02-04 19:07:32 UTC (rev 1687)
+++ jcr/trunk/exo.jcr.component.core/test.cmd 2010-02-04 19:30:30 UTC (rev 1688)
@@ -1,3 +1,3 @@
-@set MAVEN_OPTS=-Duser.language=en -Duser.region=us -Dmaven.test.skip=false
-DforkMode=once %MAVEN_OPTS%
+@set MAVEN_OPTS=-Duser.language=en -Duser.region=us %MAVEN_OPTS%
@start mvn clean test
\ No newline at end of file
Show replies by date