]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA conditionally enable perf tests (again). test execution prints the verbose...
authorSanjay Dalal <sanjay.dalal@berkeley.edu>
Tue, 2 Mar 2010 21:27:53 +0000 (21:27 +0000)
committerSanjay Dalal <sanjay.dalal@berkeley.edu>
Tue, 2 Mar 2010 21:27:53 +0000 (21:27 +0000)
test: perf test without -Dcspace.perf and with -Dcspace.perf

M    PerformanceTests/src/test/java/org/collectionspace/services/PerformanceTests/test/PerformanceTest.java

services/PerformanceTests/src/test/java/org/collectionspace/services/PerformanceTests/test/PerformanceTest.java

index 03632f4a65686b49d5a21ba9b53c5a43c8570144..d0aed20865ceb8daa2f91f07e22249206afa94e0 100644 (file)
@@ -95,6 +95,10 @@ public class PerformanceTest extends CollectionSpacePerformanceTest {
 
        @Test
        public void performanceTest() {
+            if(!isEnabled()) {
+                logger.info("Performance tests are not enabled. Use mvn -Dcspace.perf -DforkMode=never test to enable");
+                return;
+            }
                roundTripOverhead(10);
                deleteCollectionObjects();
                String[] coList = this.createCollectionObjects(MAX_RECORDS);