]> source.dussan.org Git - sonarqube.git/commitdiff
sonar-gwt-api : activate the parallel unit tests
authorsimonbrandhof <simon.brandhof@gmail.com>
Wed, 22 Sep 2010 21:01:42 +0000 (21:01 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Wed, 22 Sep 2010 21:01:42 +0000 (21:01 +0000)
sonar-ws-client/pom.xml
sonar-ws-client/src/test/java/org/sonar/wsclient/services/EventQueryTest.java

index 2875ed54b107693c9211265796eed386b773f764..fd0bee5b69c448e83e7206279b57238b33fc13c5 100644 (file)
       <scope>test</scope>
     </dependency>
   </dependencies>
+
+  <build>
+    <plugins>
+      <!-- Running JUnit tests in parallel -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <parallel>classes</parallel>
+          <threadCount>3</threadCount>
+          <perCoreThreadCount>true</perCoreThreadCount>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 </project>
\ No newline at end of file
index 5eec4d1180eb7a1af8e7a2921f1f69f4b8ed934c..b3a4eb62270875969f273762333d366d9f28c892 100644 (file)
@@ -67,7 +67,7 @@ public final class EventQueryTest {
     assertNotNull(query.getResourceKey());
     assertNotNull(query.getCategories());
 
-    final String url = query.getUrl();
+    String url = query.getUrl();
     assertNotNull(url);
     assertTrue(url.contains("fromDateTime"));
     assertTrue(url.contains("toDateTime"));