Skip to content

Commit

Permalink
SDK-357 - Do not remove integration-tests module
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton committed Nov 18, 2024
1 parent 3a3475c commit b269abd
Show file tree
Hide file tree
Showing 56 changed files with 88 additions and 28 deletions.
12 changes: 12 additions & 0 deletions integration-tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.iml
target/
.idea/
*~
/openmrs-sdk.bat

*.class

/.settings
/.project
/.classpath
.DS_Store
74 changes: 74 additions & 0 deletions integration-tests/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openmrs.maven</groupId>
<artifactId>openmrs-sdk</artifactId>
<version>6.1.0-SNAPSHOT</version>
</parent>

<artifactId>openmrs-sdk-integration-tests</artifactId>

<name>OpenMRS SDK Integration Tests</name>
<description>Set of integration tests for OpenMRS SDK Maven Plugin</description>
<url>https://wiki.openmrs.org/display/docs/OpenMRS+SDK</url>

<dependencies>
<!-- openmrs sdk maven plugin -->
<dependency>
<groupId>org.openmrs.maven.plugins</groupId>
<artifactId>openmrs-sdk-maven-plugin</artifactId>
<version>${project.parent.version}</version>
</dependency>
<!--testing-->
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-verifier</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.semver4j</groupId>
<artifactId>semver4j</artifactId>
</dependency>
</dependencies>

<profiles>
<profile>
<id>integration-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.openmrs.maven.plugins;

import static org.hamcrest.MatcherAssert.assertThat;

import org.junit.Test;

public class ResetIT extends AbstractSdkIT {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import static org.openmrs.maven.plugins.SdkMatchers.hasPropertyEqualTo;
import static org.openmrs.maven.plugins.SdkMatchers.hasPropertyThatContains;
import static org.openmrs.maven.plugins.SdkMatchers.hasPropertyThatNotContains;
import static org.openmrs.maven.plugins.SdkMatchers.serverHasName;
import static org.openmrs.maven.plugins.SdkMatchers.serverHasDebugPort;
import static org.openmrs.maven.plugins.SdkMatchers.serverHasName;
import static org.openmrs.maven.plugins.SdkMatchers.serverHasVersion;

public class SetupIT extends AbstractSdkIT {
Expand Down
26 changes: 1 addition & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<module>tomcat7-maven-plugin</module>
<module>tomcat9-maven-plugin</module>
<module>maven-plugin</module>
<module>integration-tests</module>
</modules>

<licenses>
Expand Down Expand Up @@ -546,31 +547,6 @@
</build>

<profiles>
<!--
The failsafe plugin will execute any tests that start with IT or ends with IT or ITCase
These are much slower to execute than unit tests, so they are only executed with the given profile
when full testing is desired. Integration Tests should follow this convention
-->
<profile>
<id>integration-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.1.2</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<build>
Expand Down

0 comments on commit b269abd

Please sign in to comment.