Elffuss BraidHub

kikocis/java-driver public

Define isolated profile that disables tests at parent level.

The 'isolated' profile was introduced in driver-core a while back to run
tests in their own JVM fork when needed.  This causes problems however
when another submodule like driver-mapping doesn't have an isolated
profile in which it will run unit tests and overwrite any existing
surefire report.  This change disables tests when running with isolated
group unless you override it explicitly in a module that desires to use
it.
Changesetca2ed9d887026648ed0080ba2de6c7602594d0b80a3ccc9fc495842c8691ffe4
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-02-24 16:39 -06:00
Committerolim7t <omichallat+github@gmail.com> · 2016-03-07 16:52 +01:00
Parentsafd7556b91bf

Browse the files at this changeset

2 files changed

modified driver-core/pom.xml +1 −14
@@ -352,23 +352,10 @@
352352 <artifactId>maven-surefire-plugin</artifactId>
353353 <version>2.16</version>
354354 <configuration>
355- <forkCount>1</forkCount>
356- <reuseForks>false</reuseForks>
357- <groups>isolated</groups>
358- <!-- Files containing tests to be included must be added here.
359- this prevents a fork being created for each test class. -->
355+ <skip>false</skip>
360356 <includes>
361357 <include>**/SSL*Test.java</include>
362358 </includes>
363- <reportNameSuffix>isolated</reportNameSuffix>
364- <useFile>false</useFile>
365- <systemPropertyVariables>
366- <cassandra.version>${cassandra.version}</cassandra.version>
367- <ipprefix>${ipprefix}</ipprefix>
368- </systemPropertyVariables>
369- <classpathDependencyExcludes>
370- <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
371- </classpathDependencyExcludes>
372359 </configuration>
373360 </plugin>
374361 </plugins>
modified pom.xml +35 −0
@@ -90,6 +90,41 @@
9090 <javadoc.opts>-Xdoclint:none</javadoc.opts>
9191 </properties>
9292 </profile>
93+ <profile>
94+ <!-- default profile settings for 'isolated' test group, will skip tests unless overriden in child module. -->
95+ <id>isolated</id>
96+ <properties>
97+ <env>default</env>
98+ </properties>
99+ <build>
100+ <plugins>
101+ <plugin>
102+ <groupId>org.apache.maven.plugins</groupId>
103+ <artifactId>maven-surefire-plugin</artifactId>
104+ <version>2.16</version>
105+ <configuration>
106+ <skip>true</skip>
107+ <forkCount>1</forkCount>
108+ <reuseForks>false</reuseForks>
109+ <groups>isolated</groups>
110+ <reportNameSuffix>isolated</reportNameSuffix>
111+ <useFile>false</useFile>
112+ <systemPropertyVariables>
113+ <cassandra.version>${cassandra.version}</cassandra.version>
114+ <ipprefix>${ipprefix}</ipprefix>
115+ </systemPropertyVariables>
116+ <classpathDependencyExcludes>
117+ <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
118+ </classpathDependencyExcludes>
119+ <!-- This requires includes to be explicitly specified by implementing classes.
120+ This is needed to prevent creating a JVM fork for each test, even those that don't
121+ have the isolated group. -->
122+ <includes/>
123+ </configuration>
124+ </plugin>
125+ </plugins>
126+ </build>
127+ </profile>
93128 </profiles>
94129
95130 <build>