Author: vhalbert(a)redhat.com
Date: 2009-09-18 13:05:35 -0400 (Fri, 18 Sep 2009)
New Revision: 1369
Modified:
trunk/test-integration/db/howto
trunk/test-integration/db/pom.xml
Log:
Teiid 773 - organize integration test
Modified: trunk/test-integration/db/howto
===================================================================
--- trunk/test-integration/db/howto 2009-09-18 13:31:57 UTC (rev 1368)
+++ trunk/test-integration/db/howto 2009-09-18 17:05:35 UTC (rev 1369)
@@ -33,19 +33,25 @@
Setting up a Datasource to be used during Testing
==========================================
-- see the readme.txt in src/main/resources/datasources regarding defining a datasource
-- run the maven profile to execute the process to create the required tables:
- a. to setup all sources at one time, run: mvn install -P setupdatasources
- b. to setup a specific source, run: mvn install -P singledatasource -Ddatasource=derby
+1. DEFINE DATASOURCE:
+ To define a datasource, see the readme.txt in src/main/resources/datasources regarding
defining a datasource
+
+2. CREATE TABLES
+ To create the tables on the defined datasource, run the maven profile to execute the
process to create the required tables:
+ a. to setup all sources at one time, run: mvn pre-integration-test -P
setupdatasources -Dmaven.test.skip=true
+ b. to setup a specific source, run: mvn pre-integration-test
-Ddatasource=<datasourcedir> -Psingleschema -Dmaven.test.skip=true
+ where <datasourcedir> is the name of the directory for the datasource
+
+
==========================================
Executing the db integration tests
==========================================
-The default profile in the pom.xml is set to compile and run the test. So running: mvn
clean install
-will compile and run the test.
-It does not run and setup a datasource. See above "Setting up a Datasource to be
used during Testing".
+The default profile in the pom.xml is set to compile and run the test. So running: mvn
install
+will run the test.
+It will not setup a datasource. See above "Setting up a Datasource to be used
during Testing".
Modified: trunk/test-integration/db/pom.xml
===================================================================
--- trunk/test-integration/db/pom.xml 2009-09-18 13:31:57 UTC (rev 1368)
+++ trunk/test-integration/db/pom.xml 2009-09-18 17:05:35 UTC (rev 1369)
@@ -98,7 +98,7 @@
<forkMode>always</forkMode>
<forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
<includes>
- <include>**/*TestCase.java</include>
+ <!-- <include>**/*TestCase.java</include> -->
<include>**/*Test.java</include>
<include>**/*Tests.java</include>
<include>**/Test*.java</include>
@@ -137,7 +137,7 @@
</configuration>
<executions>
<execution>
- <id>singleschema</id>
+ <id>setupalldatasources</id>
<phase>pre-integration-test</phase>
<configuration>
<tasks>
@@ -182,7 +182,7 @@
</configuration>
<executions>
<execution>
- <id>singleschema</id>
+ <id>setupsingledatasource</id>
<phase>pre-integration-test</phase>
<configuration>
<tasks>
Show replies by date