Skip to content

Commit

Permalink
Merge pull request #187 from embrace-io/move-func-tests
Browse files Browse the repository at this point in the history
Move functional tests
  • Loading branch information
fractalwrench authored Dec 15, 2023
2 parents f834830 + 3fdee9b commit 0a9d88f
Show file tree
Hide file tree
Showing 30 changed files with 16 additions and 568 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ class InternalEmbracePlugin : Plugin<Project> {
configureBuildPlugins(project)

// TODO: (future) - these scripts should be integrated into this class.
if (project.name != "test-server") { // don't want to release our test code...
project.apply(from = project.file("../scripts/release.gradle"))
}
project.apply(from = project.file("../scripts/release.gradle"))

project.pluginManager.withPlugin("com.android.library") {
val android = project.extensions.getByType(LibraryExtension::class.java)
Expand Down
16 changes: 11 additions & 5 deletions embrace-android-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ koverReport {
}

dependencies {
androidTestImplementation project(":test-server")
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:4.9.3"
androidTestImplementation project(path: ":embrace-android-sdk")

implementation "androidx.lifecycle:lifecycle-common-java8:2.5.0"
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
implementation "com.google.code.gson:gson:2.9.0"
Expand All @@ -107,6 +102,17 @@ dependencies {

dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:${Versions.dokka}")
dokkaHtmlPlugin("org.jetbrains.dokka:android-documentation-plugin:${Versions.dokka}")

// For the functional tests
androidTestImplementation "androidx.test:core:1.4.0"
androidTestImplementation "androidx.test:runner:1.4.0"
androidTestImplementation "androidx.test:rules:1.4.0"
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
androidTestImplementation "androidx.appcompat:appcompat:1.1.0"
androidTestImplementation "com.squareup.okhttp3:mockwebserver:4.9.3"
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation project(path: ":embrace-android-sdk")
}

dokkaHtml {
Expand Down
3 changes: 3 additions & 0 deletions embrace-android-sdk/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@

<uses-sdk tools:overrideLibrary="io.embrace.android.embracesdk.testserver"/>

<application>
<activity android:name="io.embrace.android.embracesdk.EmbraceContext$ActivityAccess" />
</application>
</manifest>
File renamed without changes.
3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ include ":embrace-android-sdk",
":embrace-android-okhttp3",
":embrace-android-fcm",
":embrace-android-compose",
":embrace-lint",
":test-server"
":embrace-lint"
1 change: 0 additions & 1 deletion test-server/.gitignore

This file was deleted.

40 changes: 0 additions & 40 deletions test-server/build.gradle

This file was deleted.

Empty file removed test-server/consumer-rules.pro
Empty file.
Loading

0 comments on commit 0a9d88f

Please sign in to comment.