Skip to content

Commit

Permalink
Make TestWsman to an integration test
Browse files Browse the repository at this point in the history
Use maven-failsafe-plugin to run integration tests, as it is designed
for that purpose. Disable integration tests by default.
  • Loading branch information
CMoH committed Jan 8, 2016
1 parent 8ef1a3d commit cd90027
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
Expand Down
27 changes: 20 additions & 7 deletions wsman-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<name>WSMan4j :: CLI</name>

<packaging>jar</packaging>

<properties>
<skipITs>true</skipITs>
</properties>

<dependencies>
<dependency>
Expand Down Expand Up @@ -60,12 +64,12 @@
<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
Expand All @@ -90,15 +94,24 @@
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<winrm.host>${winrm.test.host}</winrm.host>
<winrm.port>${winrm.test.port}</winrm.port>
<winrm.user>${winrm.test.user}</winrm.user>
<winrm.pass>${winrm.test.pass}</winrm.pass>
</systemPropertyVariables>
<skipITs>${skipITs}</skipITs>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
/**
*
*/
public class TestWsman {
public class WinRMIT {

private WsmanCli cli;

public TestWsman() {
public WinRMIT() {
}

// @BeforeClass
Expand Down

0 comments on commit cd90027

Please sign in to comment.