Skip to content

Commit

Permalink
build: Make unit tests execution a part of Gradle build lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
valfirst committed Jan 31, 2023
1 parent 4be4904 commit d70a5a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew clean build unitTest
run: ./gradlew clean build
6 changes: 2 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ jobs:
jdkVersionOption: "$(JDK_VERSION)"
jdkArchitectureOption: 'x64'
publishJUnitResults: true
tasks: 'build'
options: 'uiAutomationTest -x test'
tasks: 'build uiAutomationTest'
- job: iOS_E2E_Tests
# timeoutInMinutes: '90'
steps:
Expand All @@ -62,5 +61,4 @@ jobs:
jdkVersionOption: "$(JDK_VERSION)"
jdkArchitectureOption: 'x64'
publishJUnitResults: true
tasks: 'build'
options: 'xcuiTest -x test'
tasks: 'build xcuiTest'
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ processResources {
]
}

task unitTest( type: Test ) {
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
testLogging.exceptionFormat = 'full'
Expand All @@ -212,6 +212,7 @@ task unitTest( type: Test ) {
includeTestsMatching 'io.appium.java_client.remote.*'
includeTestsMatching 'io.appium.java_client.touch.*'
}
finalizedBy jacocoTestReport
}

task xcuiTest( type: Test ) {
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jdk:
- openjdk8
install:
- ./gradlew clean build publishToMavenLocal -x signMavenJavaPublication -x test
- ./gradlew clean build publishToMavenLocal -x signMavenJavaPublication

0 comments on commit d70a5a6

Please sign in to comment.