Skip to content

Commit

Permalink
Move androidTests to unitTest
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwellmapako committed Jun 17, 2023
1 parent dae90eb commit c165086
Show file tree
Hide file tree
Showing 10 changed files with 424 additions and 363 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run tests
run: ./gradlew emojify:test --stacktrace
run: |
./gradlew emojify:preTest --stacktrace
./gradlew emojify:test --stacktrace
./gradlew emojify:postTest --stacktrace
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always() # always run even if the previous step fails
with:
report_paths: '**/build/test-results/test/TEST-*.xml'

instrumented-test:
runs-on: macos-latest
Expand Down
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion emojify/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import org.gradle.api.tasks.Copy
import org.gradle.api.tasks.Delete

plugins {
id("io.wax911.emojify")
id("kotlinx-serialization")
Expand All @@ -11,4 +14,15 @@ dependencies {

android {
namespace = "io.wax911.emojify"
}
}

tasks.register<Copy>("preTest") {
from("src/main/assets/emoticons/")
into("src/test/resources/io/wax911/emojify/core/")
}

tasks.register<Delete>("postTest") {
delete(fileTree("src/test/resources/io/wax911/emojify/core/") {
include("emoji.json")
})
}
218 changes: 0 additions & 218 deletions emojify/src/androidTest/java/io/wax911/emojify/EmojiUtilTest.kt

This file was deleted.

Loading

0 comments on commit c165086

Please sign in to comment.