Skip to content

Commit

Permalink
Jacoco worky (#1378)
Browse files Browse the repository at this point in the history
* updated deps

* updated generated pom

* Test for UltrasonicSensor

* jacoco worky
  • Loading branch information
supertick authored Dec 10, 2023
1 parent 5fd44f6 commit 9d1d755
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Java CI

on:
push:
# pull_request:
# push:
pull_request:

jobs:
build:
Expand Down
19 changes: 16 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1845,7 +1845,7 @@
</goals>
<configuration>
<rules>
<banDuplicatePomDependencyVersions/>
<banDuplicatePomDependencyVersions />
</rules>
</configuration>
</execution>
Expand Down Expand Up @@ -2000,7 +2000,8 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.22.2</version>
<!-- do not upgrade this version jacoco will break -->
<version>2.18</version>
<configuration>
<!-- critical for jacoco to have original argLine prefixed here-->
<argLine>${argLine} -Djava.library.path=libraries/native -Djna.library.path=libraries/native</argLine>
Expand All @@ -2015,6 +2016,18 @@
<systemPropertyVariables>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>surefire-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<!-- Additional configurations for the test execution -->
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin deletes the .myrobotlab on a build also the target directory from previous builds -->
<plugin>
Expand Down Expand Up @@ -2082,7 +2095,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.2</version>
<version>2.18</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
19 changes: 16 additions & 3 deletions src/main/resources/resource/framework/pom.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
</goals>
<configuration>
<rules>
<banDuplicatePomDependencyVersions/>
<banDuplicatePomDependencyVersions />
</rules>
</configuration>
</execution>
Expand Down Expand Up @@ -330,7 +330,8 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<groupId>org.apache.maven.plugins</groupId>
<version>2.22.2</version>
<!-- do not upgrade this version jacoco will break -->
<version>2.18</version>
<configuration>
<!-- critical for jacoco to have original argLine prefixed here-->
<argLine>${argLine} -Djava.library.path=libraries/native -Djna.library.path=libraries/native</argLine>
Expand All @@ -345,6 +346,18 @@
<systemPropertyVariables>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>surefire-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<!-- Additional configurations for the test execution -->
</configuration>
</execution>
</executions>
</plugin>
<!-- This plugin deletes the .myrobotlab on a build also the target directory from previous builds -->
<plugin>
Expand Down Expand Up @@ -412,7 +425,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.22.2</version>
<version>2.18</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down

0 comments on commit 9d1d755

Please sign in to comment.