Skip to content

Commit af5c7c6

Browse files
merge unit test and integration test results
1 parent d480ea2 commit af5c7c6

File tree

2 files changed

+49
-58
lines changed

2 files changed

+49
-58
lines changed

.utility/travis.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
44
echo '$TRAVIS_PULL_REQUEST is false, running all tests'
5-
mvn clean cobertura:cobertura-integration-test coveralls:report
5+
mvn clean integration-test
66
else
77
echo '$TRAVIS_PULL_REQUEST is not false ($TRAVIS_PULL_REQUEST), running unit tests'
88
mvn clean test
99
fi
10+
# merge the unit test and integration test reports
11+
mvn jacoco:merge

pom.xml

Lines changed: 46 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,6 @@
128128
<goals>deploy</goals>
129129
</configuration>
130130
</plugin>
131-
132-
<plugin>
133-
<groupId>org.codehaus.mojo</groupId>
134-
<artifactId>cobertura-maven-plugin</artifactId>
135-
<version>2.7</version>
136-
<configuration>
137-
<format>xml</format>
138-
<instrumentation>
139-
<excludes>
140-
<exclude>com/ibm/watson/developer_cloud/*/v*/model/**/*.class</exclude>
141-
</excludes>
142-
<excludes>
143-
<exclude>com/ibm/watson/developer_cloud/*/**/*Example.class</exclude>
144-
</excludes>
145-
</instrumentation>
146-
</configuration>
147-
</plugin>
148131
<plugin>
149132
<groupId>org.eluder.coveralls</groupId>
150133
<artifactId>coveralls-maven-plugin</artifactId>
@@ -178,47 +161,53 @@
178161
<groupId>org.jacoco</groupId>
179162
<artifactId>jacoco-maven-plugin</artifactId>
180163
<version>0.7.5.201505241946</version>
181-
<configuration>
182-
<excludes>
183-
<exclude>com/ibm/watson/developer_cloud/*/v*/model/**/*.class</exclude>
184-
<exclude>com/ibm/watson/developer_cloud/**/*Example.*</exclude>
185-
</excludes>
186-
</configuration>
187-
<executions>
188-
<execution>
189-
<goals>
190-
<goal>prepare-agent</goal>
191-
</goals>
192-
</execution>
193-
<execution>
194-
<id>report</id>
195-
<phase>test</phase>
196-
<goals>
197-
<goal>report</goal>
198-
</goals>
199-
</execution>
200-
</executions>
164+
<configuration>
165+
<fileSets>
166+
<fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
167+
<directory>${project.build.directory}</directory>
168+
<includes>
169+
<include>*.exec</include>
170+
</includes>
171+
</fileSet>
172+
</fileSets>
173+
<excludes>
174+
<exclude>com/ibm/watson/developer_cloud/*/v*/model/**/*.class</exclude>
175+
<exclude>com/ibm/watson/developer_cloud/**/*Example.*</exclude>
176+
</excludes>
177+
</configuration>
178+
<executions>
179+
<execution>
180+
<id>prepare-unit-test-agent</id>
181+
<goals>
182+
<goal>prepare-agent</goal>
183+
</goals>
184+
</execution>
185+
<execution>
186+
<id>generate-unit-test-report</id>
187+
<goals>
188+
<goal>report</goal>
189+
</goals>
190+
</execution>
191+
<execution>
192+
<id>prepare-integration-test-agent</id>
193+
<goals>
194+
<goal>prepare-agent-integration</goal>
195+
</goals>
196+
</execution>
197+
<execution>
198+
<id>generate-integration-test-report</id>
199+
<goals>
200+
<goal>report-integration</goal>
201+
</goals>
202+
</execution>
203+
<execution>
204+
<id>merge</id>
205+
<goals>
206+
<goal>merge</goal>
207+
</goals>
208+
</execution>
209+
</executions>
201210
</plugin>
202-
<!-- <plugin>
203-
<groupId>org.codehaus.mojo</groupId>
204-
<artifactId>animal-sniffer-maven-plugin</artifactId>
205-
<version>1.11</version>
206-
<executions>
207-
<execution>
208-
<phase>test</phase>
209-
<goals>
210-
<goal>check</goal>
211-
</goals>
212-
</execution>
213-
</executions>
214-
<configuration>
215-
<signature>
216-
<groupId>org.codehaus.mojo.signature</groupId>
217-
<artifactId>java16</artifactId>
218-
<version>1.1</version>
219-
</signature>
220-
</configuration>
221-
</plugin> -->
222211
</plugins>
223212
<resources>
224213
<resource>

0 commit comments

Comments
 (0)