Skip to content

Commit

Permalink
surefire plugin testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nasir19noor committed Jan 8, 2025
1 parent 6ed8195 commit 6232d27
Show file tree
Hide file tree
Showing 4 changed files with 841 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/java-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ jobs:
- name: Setup Environment
id: setup-env
uses: ./.github/actions/setup-env
- name: Run Unit Tests
- name: |
export MAVEN_OPTS="-Xmx4g -XX:+HeapDumpOnOutOfMemoryError"
Run Unit Tests
run: ./cicd/run-unit-tests
- name: Upload Unit Tests Report
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
Expand Down
4 changes: 3 additions & 1 deletion cicd/cmd/run-unit-tests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ func main() {
mvnFlags.SkipIntegrationTests(),
mvnFlags.FailAtTheEnd(),
mvnFlags.ThreadCount(8),
mvnFlags.InternalMaven())
mvnFlags.InternalMaven(),
mvnFlags.ShowErrors(), // Add this to show detailed test failures
mvnFlags.LogLevel("DEBUG"))
if err != nil {
log.Fatalf("%v\n", err)
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<snakeyaml.version>2.0</snakeyaml.version>
<snappy.version>1.1.10.4</snappy.version>
<spotless-maven-plugin.version>2.40.0</spotless-maven-plugin.version>
<surefire.version>2.21.0</surefire.version>
<surefire.version>3.2.5</surefire.version>
<truth.version>1.1.5</truth.version>

<!-- TODO(https://github.com/apache/beam/issues/30700): Remove once Beam gets the latest version of gax. -->
Expand Down
Loading

0 comments on commit 6232d27

Please sign in to comment.