Retry ALL THE THINGS, and always send sonarqube

This commit is contained in:
Michael Kaye 2022-06-06 17:08:02 +01:00
parent d18e7ad001
commit 56608d564e
2 changed files with 6 additions and 0 deletions

View File

@ -49,6 +49,7 @@ jobs:
emulator-build: 7425822
script: ./gradlew theCodeCoverageReport --stacktrace $CI_GRADLE_ARG_PROPERTIES
- run: ./gradlew sonarqube $CI_GRADLE_ARG_PROPERTIES
if: always() # upload even if test suite fails, will be missing coverage report (but will also report coverage drop and quality gate will kick in)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

View File

@ -19,10 +19,15 @@ package org.matrix.android.sdk
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import org.junit.Rule
import org.matrix.android.sdk.common.RetryTestRule
import org.matrix.android.sdk.test.shared.createTimberTestRule
interface InstrumentedTest {
@Rule
fun retryTestRule() = RetryTestRule(3)
@Rule
fun timberTestRule() = createTimberTestRule()