Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
integration tests fixes and maven directives (#620)
Browse files Browse the repository at this point in the history
* Integration tests fixes, spawns local node for tests

* added `mvn integration-test`, be explicit about why integration tests don't run under `mvn test`

* add jacoco for integration-test coverage
  • Loading branch information
alon-e authored Apr 11, 2018
1 parent 2ba501a commit 9f36496
Show file tree
Hide file tree
Showing 5 changed files with 472 additions and 352 deletions.
46 changes: 46 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,52 @@
</dependencies>

</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<configuration>
<excludes>
<exclude>integration/*.java</exclude>
</excludes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>test</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>integration/*.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.9</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>integration-test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

</build>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/iota/iri/IRI.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static void main(final String[] args) throws IOException {
log.info("IOTA Node initialised correctly.");
}

private static void validateParams(final Configuration configuration, final String[] args) throws IOException {
public static void validateParams(final Configuration configuration, final String[] args) throws IOException {

boolean configurationInit = configuration.init();

Expand Down
Loading

0 comments on commit 9f36496

Please sign in to comment.