Skip to content

Commit

Permalink
HSEARCH-2434 Add JUnit test categories for tests specific to an Elast…
Browse files Browse the repository at this point in the history
…icsearch version
  • Loading branch information
yrodiere committed Mar 21, 2017
1 parent 088e004 commit 5409b97
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 1 deletion.
38 changes: 37 additions & 1 deletion elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>elasticsearch-it</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
Expand Down Expand Up @@ -266,7 +267,6 @@
<!-- HSEARCH-2404 Enable CollectionUpdateEventTest for Elasticsearch -->
<exclude>**/CollectionUpdateEventTest.java</exclude><!-- Only fails on CI (Travis) -->
</excludes>
<excludedGroups>org.hibernate.search.testsupport.junit.SkipOnElasticsearch,org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress</excludedGroups>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -318,6 +318,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>elasticsearch-it</id>
<configuration>
<excludedGroups>org.hibernate.search.testsupport.junit.SkipOnElasticsearch,org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,org.hibernate.search.elasticsearch.testutil.junit.SkipOnElasticsearch2</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.alexcojocaru</groupId>
<artifactId>elasticsearch-maven-plugin</artifactId>
Expand Down Expand Up @@ -403,6 +415,18 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>elasticsearch-it</id>
<configuration>
<excludedGroups>org.hibernate.search.testsupport.junit.SkipOnElasticsearch,org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,org.hibernate.search.elasticsearch.testutil.junit.SkipOnElasticsearch2</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.alexcojocaru</groupId>
<artifactId>elasticsearch-maven-plugin</artifactId>
Expand Down Expand Up @@ -436,6 +460,18 @@
<id>elasticsearch-5.0</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>elasticsearch-it</id>
<configuration>
<excludedGroups>org.hibernate.search.testsupport.junit.SkipOnElasticsearch,org.hibernate.search.testsupport.junit.ElasticsearchSupportInProgress,org.hibernate.search.elasticsearch.testutil.junit.SkipOnElasticsearch5</excludedGroups>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.alexcojocaru</groupId>
<artifactId>elasticsearch-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.search.elasticsearch.testutil.junit;


/**
* JUnit category marker.
* <p>
* Used to ignore tests which are not sensible when testing against
* Elasticsearch version 2.x.
*/
public class SkipOnElasticsearch2 {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.search.elasticsearch.testutil.junit;


/**
* JUnit category marker.
* <p>
* Used to ignore tests which are not sensible when testing against
* Elasticsearch version 5.x.
*/
public class SkipOnElasticsearch5 {

}

0 comments on commit 5409b97

Please sign in to comment.