diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9beefe58..4a1e8e47 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,6 +19,9 @@ jobs: - name: Validate Gradle wrapper uses: gradle/wrapper-validation-action@v1 + - name: Run tests + run: ./build-scripts/run_tests.sh + - name: Deploy Snapshot run: ./build-scripts/deploy_snapshot.sh env: diff --git a/build-scripts/run_tests.sh b/build-scripts/run_tests.sh new file mode 100755 index 00000000..b3079808 --- /dev/null +++ b/build-scripts/run_tests.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# +# Run tests for all modules +# + +set -e + +echo "Running tests..." +./gradlew test diff --git a/build.gradle b/build.gradle index cf24c68a..dcf166c3 100644 --- a/build.gradle +++ b/build.gradle @@ -12,8 +12,8 @@ ext.targetCompatibility = JavaVersion.VERSION_1_8 ext { - androidPluginVersion = "7.0.1" - ddmlibVersion = "30.0.1" + androidPluginVersion = "7.1.3" + ddmlibVersion = "30.1.3" jcommanderVersion = "1.48" slf4jVersion = "1.7.21" guavaVersion = "19.0" diff --git a/fork-runner/src/main/java/com/shazam/fork/summary/HtmlConverters.java b/fork-runner/src/main/java/com/shazam/fork/summary/HtmlConverters.java index 9bb4fe9d..4597b610 100755 --- a/fork-runner/src/main/java/com/shazam/fork/summary/HtmlConverters.java +++ b/fork-runner/src/main/java/com/shazam/fork/summary/HtmlConverters.java @@ -25,7 +25,9 @@ import static com.shazam.fork.model.Diagnostics.VIDEO; import static com.shazam.fork.summary.ResultStatus.IGNORED; import static com.shazam.fork.summary.ResultStatus.PASS; -import static com.shazam.fork.utils.ReadableNames.*; +import static com.shazam.fork.utils.ReadableNames.readableClassName; +import static com.shazam.fork.utils.ReadableNames.readablePoolName; +import static com.shazam.fork.utils.ReadableNames.readableTestMethodName; class HtmlConverters { @@ -130,13 +132,14 @@ public static Function toHtmlLogCatMessages() @Override public HtmlLogCatMessage apply(@Nullable LogCatMessage logCatMessage) { HtmlLogCatMessage htmlLogCatMessage = new HtmlLogCatMessage(); - htmlLogCatMessage.appName = logCatMessage.getAppName(); - htmlLogCatMessage.logLevel = logCatMessage.getLogLevel().getStringValue(); + htmlLogCatMessage.appName = logCatMessage.getHeader().getAppName(); + htmlLogCatMessage.logLevel = + logCatMessage.getHeader().getLogLevel().getStringValue(); htmlLogCatMessage.message = logCatMessage.getMessage(); - htmlLogCatMessage.pid = logCatMessage.getPid(); - htmlLogCatMessage.tag = logCatMessage.getTag(); - htmlLogCatMessage.tid = logCatMessage.getTid(); - htmlLogCatMessage.time = logCatMessage.getTimestamp().toString(); + htmlLogCatMessage.pid = logCatMessage.getHeader().getPid(); + htmlLogCatMessage.tag = logCatMessage.getHeader().getTag(); + htmlLogCatMessage.tid = logCatMessage.getHeader().getTid(); + htmlLogCatMessage.time = logCatMessage.getHeader().getTimestamp().toString(); return htmlLogCatMessage; } };