Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Make unit tests execution a part of Gradle build lifecycle #1853

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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