Skip to content

Commit c6a0635

Browse files
committed
Disable parallel Unit tests
1 parent 323e648 commit c6a0635

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

maven-nodejs-proxy/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,16 @@
134134
</configuration>
135135
</plugin>
136136

137+
<!-- Disable parallel Unit tests -->
138+
<plugin>
139+
<groupId>org.apache.maven.plugins</groupId>
140+
<artifactId>maven-surefire-plugin</artifactId>
141+
<configuration>
142+
<parallel>none</parallel>
143+
<threadCount>0</threadCount>
144+
</configuration>
145+
</plugin>
146+
137147
</plugins>
138148
</build>
139149

maven-nodejs-proxy/src/test/java/io/wcm/devops/maven/nodejsproxy/resource/MavenProxyResourceTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public void testGetBinaryNPM() {
118118
}
119119

120120
private void assertResponse(String path, Response response, String mediaType) {
121+
System.out.println("Integration test: " + path);
121122
assertEquals("HTTP status " + path, HttpStatus.SC_OK, response.getStatus());
122123
assertEquals("Media type " + path, mediaType, response.getMediaType().toString());
123124
assertTrue(response.hasEntity());

maven-nodejs-proxy/src/test/java/io/wcm/devops/maven/nodejsproxy/resource/TestContext.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.apache.http.impl.client.HttpClients;
2727

2828
import com.fasterxml.jackson.databind.ObjectMapper;
29-
import com.fasterxml.jackson.dataformat.yaml.YAMLMapper;
3029

3130
import io.dropwizard.configuration.ConfigurationException;
3231
import io.dropwizard.configuration.ConfigurationFactory;
@@ -45,6 +44,10 @@ static MavenProxyConfiguration getConfiguration() {
4544
ConfigurationFactory factory = new ConfigurationFactory<MavenProxyConfiguration>(
4645
MavenProxyConfiguration.class, null, OBJECT_MAPPER, "override");
4746
try {
47+
File configFile = new File("config.yml");
48+
if (!configFile.exists()) {
49+
throw new RuntimeException("Configuration file not found: " + configFile.getCanonicalPath());
50+
}
4851
return (MavenProxyConfiguration)factory.build(new File("config.yml"));
4952
}
5053
catch (IOException | ConfigurationException ex) {

0 commit comments

Comments
 (0)