You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sk...@apache.org on 2021/03/05 12:43:24 UTC

[ignite-3] branch main updated: IGNITE-14276 Local maven build runs tests while they are switched off by skipTests option. Fixes #60

This is an automated email from the ASF dual-hosted git repository.

sk0x50 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git


The following commit(s) were added to refs/heads/main by this push:
     new edf04a7  IGNITE-14276 Local maven build runs tests while they are switched off by skipTests option. Fixes #60
edf04a7 is described below

commit edf04a7e2a00e3b72b074d2f0bc2115aa8497d38
Author: Peter Ivanov <mr...@gmail.com>
AuthorDate: Fri Mar 5 15:39:06 2021 +0300

    IGNITE-14276 Local maven build runs tests while they are switched off by skipTests option. Fixes #60
    
    Signed-off-by: Slava Koptilin <sl...@gmail.com>
---
 parent/pom.xml | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/parent/pom.xml b/parent/pom.xml
index 29cd9e3..3af2fbf 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -251,6 +251,30 @@
         </dependencies>
     </dependencyManagement>
 
+    <!--
+        Profile to exclude running surefire (unit) tests but do not prevent running integration ones
+    -->
+    <profiles>
+        <profile>
+            <activation>
+                <property>
+                    <name>skip.surefire.tests</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <skipTests>true</skipTests>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
     <build>
         <pluginManagement>
             <plugins>
@@ -394,7 +418,6 @@
                     <excludes>
                         <exclude>**/IT*.java</exclude>
                     </excludes>
-                    <skipTests>${skip.surefire.tests}</skipTests>
                 </configuration>
             </plugin>