|
31 | 31 | </parent>
|
32 | 32 |
|
33 | 33 | <properties>
|
34 |
| - <elasticsearch.version>0.90.6</elasticsearch.version> |
35 |
| - <lucene.version>4.5.1</lucene.version> |
| 34 | + <elasticsearch.version>0.90.8</elasticsearch.version> |
| 35 | + <lucene.version>4.6.0</lucene.version> |
| 36 | + <tests.jvms>1</tests.jvms> |
| 37 | + <tests.shuffle>true</tests.shuffle> |
| 38 | + <tests.output>onerror</tests.output> |
| 39 | + <tests.client.ratio></tests.client.ratio> |
| 40 | + <es.logger.level>INFO</es.logger.level> |
36 | 41 | </properties>
|
37 | 42 |
|
38 | 43 | <repositories>
|
|
43 | 48 | </repositories>
|
44 | 49 |
|
45 | 50 | <dependencies>
|
| 51 | + <dependency> |
| 52 | + <groupId>org.hamcrest</groupId> |
| 53 | + <artifactId>hamcrest-all</artifactId> |
| 54 | + <version>1.3</version> |
| 55 | + <scope>test</scope> |
| 56 | + </dependency> |
| 57 | + <dependency> |
| 58 | + <groupId>org.apache.lucene</groupId> |
| 59 | + <artifactId>lucene-test-framework</artifactId> |
| 60 | + <version>${lucene.version}</version> |
| 61 | + <scope>test</scope> |
| 62 | + </dependency> |
46 | 63 | <dependency>
|
47 | 64 | <groupId>org.elasticsearch</groupId>
|
48 | 65 | <artifactId>elasticsearch</artifactId>
|
|
65 | 82 | </dependency>
|
66 | 83 |
|
67 | 84 | <dependency>
|
68 |
| - <groupId>org.testng</groupId> |
69 |
| - <artifactId>testng</artifactId> |
70 |
| - <version>6.8</version> |
| 85 | + <groupId>org.elasticsearch</groupId> |
| 86 | + <artifactId>elasticsearch</artifactId> |
| 87 | + <version>${elasticsearch.version}</version> |
| 88 | + <type>test-jar</type> |
71 | 89 | <scope>test</scope>
|
72 | 90 | </dependency>
|
73 | 91 |
|
|
77 | 95 | <version>1.3</version>
|
78 | 96 | <scope>test</scope>
|
79 | 97 | </dependency>
|
80 |
| - |
81 |
| - <dependency> |
82 |
| - <groupId>org.hamcrest</groupId> |
83 |
| - <artifactId>hamcrest-library</artifactId> |
84 |
| - <version>1.3</version> |
85 |
| - <scope>test</scope> |
86 |
| - </dependency> |
87 | 98 | </dependencies>
|
88 | 99 |
|
89 | 100 | <build>
|
|
132 | 143 | </configuration>
|
133 | 144 | </plugin>
|
134 | 145 | <plugin>
|
| 146 | + <groupId>org.apache.maven.plugins</groupId> |
| 147 | + <artifactId>maven-compiler-plugin</artifactId> |
| 148 | + <version>2.3.2</version> |
| 149 | + <configuration> |
| 150 | + <source>1.6</source> |
| 151 | + <target>1.6</target> |
| 152 | + </configuration> |
| 153 | + </plugin> |
| 154 | + <plugin> |
| 155 | + <groupId>com.carrotsearch.randomizedtesting</groupId> |
| 156 | + <artifactId>junit4-maven-plugin</artifactId> |
| 157 | + <version>2.0.12</version> |
| 158 | + <executions> |
| 159 | + <execution> |
| 160 | + <id>tests</id> |
| 161 | + <phase>test</phase> |
| 162 | + <goals> |
| 163 | + <goal>junit4</goal> |
| 164 | + </goals> |
| 165 | + <configuration> |
| 166 | + <heartbeat>20</heartbeat> |
| 167 | + <jvmOutputAction>pipe,warn</jvmOutputAction> |
| 168 | + <leaveTemporary>true</leaveTemporary> |
| 169 | + <listeners> |
| 170 | + <report-ant-xml mavenExtensions="true" |
| 171 | + dir="${project.build.directory}/surefire-reports"/> |
| 172 | + <report-text |
| 173 | + showThrowable="true" |
| 174 | + showStackTraces="true" |
| 175 | + showOutput="${tests.output}" |
| 176 | + showStatusOk="false" |
| 177 | + showStatusError="true" |
| 178 | + showStatusFailure="true" |
| 179 | + showStatusIgnored="true" |
| 180 | + showSuiteSummary="true" |
| 181 | + timestamps="false"/> |
| 182 | + <report-execution-times file="${basedir}/.local-execution-hints.log"/> |
| 183 | + </listeners> |
| 184 | + <assertions> |
| 185 | + <enable/> |
| 186 | + </assertions> |
| 187 | + <parallelism>${tests.jvms}</parallelism> |
| 188 | + <balancers> |
| 189 | + <execution-times> |
| 190 | + <fileset dir="${basedir}" includes=".local-execution-hints.log"/> |
| 191 | + </execution-times> |
| 192 | + </balancers> |
| 193 | + <includes> |
| 194 | + <include>**/*Tests.class</include> |
| 195 | + <include>**/*Test.class</include> |
| 196 | + </includes> |
| 197 | + <excludes> |
| 198 | + <exclude>**/Abstract*.class</exclude> |
| 199 | + <exclude>**/*StressTest.class</exclude> |
| 200 | + </excludes> |
| 201 | + <jvmArgs> |
| 202 | + <param>-Xmx512m</param> |
| 203 | + <param>-XX:MaxDirectMemorySize=512m</param> |
| 204 | + <param>-Des.logger.prefix=</param> |
| 205 | + </jvmArgs> |
| 206 | + <shuffleOnSlave>${tests.shuffle}</shuffleOnSlave> |
| 207 | + <sysouts>${tests.verbose}</sysouts> |
| 208 | + <seed>${tests.seed}</seed> |
| 209 | + <haltOnFailure>${tests.failfast}</haltOnFailure> |
| 210 | + <systemProperties> |
| 211 | + <!-- RandomizedTesting library system properties --> |
| 212 | + <tests.iters>${tests.iters}</tests.iters> |
| 213 | + <tests.maxfailures>${tests.maxfailures}</tests.maxfailures> |
| 214 | + <tests.failfast>${tests.failfast}</tests.failfast> |
| 215 | + <tests.class>${tests.class}</tests.class> |
| 216 | + <tests.method>${tests.method}</tests.method> |
| 217 | + <tests.nightly>${tests.nightly}</tests.nightly> |
| 218 | + <tests.badapples>${tests.badapples}</tests.badapples> |
| 219 | + <tests.weekly>${tests.weekly}</tests.weekly> |
| 220 | + <tests.slow>${tests.slow}</tests.slow> |
| 221 | + <tests.awaitsfix>${tests.awaitsfix}</tests.awaitsfix> |
| 222 | + <tests.slow>${tests.slow}</tests.slow> |
| 223 | + <tests.timeoutSuite>${tests.timeoutSuite}</tests.timeoutSuite> |
| 224 | + <tests.showSuccess>${tests.showSuccess}</tests.showSuccess> |
| 225 | + <tests.integration>${tests.integration}</tests.integration> |
| 226 | + <tests.cluster_seed>${tests.cluster_seed}</tests.cluster_seed> |
| 227 | + <tests.client.ratio>${tests.client.ratio}</tests.client.ratio> |
| 228 | + <es.node.local>${env.ES_TEST_LOCAL}</es.node.local> |
| 229 | + <es.node.mode>${es.node.mode}</es.node.mode> |
| 230 | + <es.logger.level>${es.logger.level}</es.logger.level> |
| 231 | + <java.awt.headless>true</java.awt.headless> |
| 232 | + </systemProperties> |
| 233 | + </configuration> |
| 234 | + </execution> |
| 235 | + </executions> |
| 236 | + </plugin> |
| 237 | + <plugin> |
| 238 | + <!-- we skip surefire to work with randomized testing above --> |
135 | 239 | <groupId>org.apache.maven.plugins</groupId>
|
136 | 240 | <artifactId>maven-surefire-plugin</artifactId>
|
137 |
| - <version>2.11</version> |
| 241 | + <version>2.15</version> |
138 | 242 | <configuration>
|
139 |
| - <includes> |
140 |
| - <include>**/*Tests.java</include> |
141 |
| - </includes> |
| 243 | + <skipTests>true</skipTests> |
142 | 244 | </configuration>
|
143 | 245 | </plugin>
|
144 | 246 | <plugin>
|
|
0 commit comments