Skip to content
Snippets Groups Projects
Commit 71398f2b authored by OZGCloud's avatar OZGCloud
Browse files

Merge pull request 'run-tests-in-jenkins' (#19) from run-tests-in-jenkins into master

parents 2914a238 b34023dd
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ pipeline {
dir('ozgcloud-common-dependencies') {
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn --version'
sh 'mvn -s $MAVEN_SETTINGS clean install'
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS clean install'
}
}
}
......@@ -71,7 +71,7 @@ pipeline {
}
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn --version'
sh 'mvn -s $MAVEN_SETTINGS clean install'
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS clean install'
script {
dir('ozgcloud-common-lib') {
......@@ -104,7 +104,7 @@ pipeline {
FAILED_STAGE = env.STAGE_NAME
}
configFileProvider([configFile(fileId: 'maven-settings', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s $MAVEN_SETTINGS deploy'
sh 'mvn --no-transfer-progress -s $MAVEN_SETTINGS deploy'
}
}
}
......
......@@ -164,4 +164,19 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>
${surefire.jacoco.args}
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -63,14 +63,14 @@ class GrpcUtilTest {
void shouldReadFromHeader() {
var value = GrpcUtil.getFromHeaders(KEY_VALUE_BIN, header);
assertThat(value).isEqualTo(TEST_VALUE);
assertThat(value).contains(TEST_VALUE);
}
@Test
void shouldReturnNullOnUnknownKey() {
var value = GrpcUtil.getFromHeaders(UNKNOWN_KEY_BIN, header);
assertThat(value).isNull();
assertThat(value).isEmpty();
}
}
......
......@@ -114,5 +114,19 @@
<artifactId>ozgcloud-common-test</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<argLine>
${surefire.jacoco.args}
</argLine>
</configuration>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -51,6 +51,7 @@
<java.version>17</java.version>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
</properties>
<distributionManagement>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment