Skip to content

Commit dd60eaf

Browse files
authored
Merge pull request #3617 from element-hq/feature/testOnCi
Ensure the CI compile and execute all the unit tests.
2 parents b1f5480 + 23c0dc1 commit dd60eaf

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
cache-read-only: ${{ github.ref != 'refs/heads/develop' }}
5858

5959
- name: ⚙️ Check coverage for debug variant (includes unit & screenshot tests)
60-
run: ./gradlew :tests:uitests:verifyPaparazziDebug :app:koverXmlReportGplayDebug :app:koverHtmlReportGplayDebug :app:koverVerifyAll $CI_GRADLE_ARG_PROPERTIES
60+
run: ./gradlew testDebugUnitTest :tests:uitests:verifyPaparazziDebug :app:koverXmlReportGplayDebug :app:koverHtmlReportGplayDebug :app:koverVerifyAll $CI_GRADLE_ARG_PROPERTIES
6161

6262
- name: 🚫 Upload kover failed coverage reports
6363
if: failure()

libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactoryTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ package io.element.android.libraries.matrix.impl
1010
import com.google.common.truth.Truth.assertThat
1111
import io.element.android.libraries.featureflag.test.FakeFeatureFlagService
1212
import io.element.android.libraries.matrix.api.core.SessionId
13-
import io.element.android.libraries.matrix.impl.analytics.UtdTracker
1413
import io.element.android.libraries.matrix.impl.auth.FakeProxyProvider
1514
import io.element.android.libraries.matrix.impl.auth.FakeUserCertificatesProvider
1615
import io.element.android.libraries.matrix.impl.room.FakeTimelineEventTypeFilterFactory
@@ -50,7 +49,7 @@ fun TestScope.createRustMatrixClientFactory(
5049
userCertificatesProvider = FakeUserCertificatesProvider(),
5150
proxyProvider = FakeProxyProvider(),
5251
clock = FakeSystemClock(),
53-
utdTracker = UtdTracker(FakeAnalyticsService()),
52+
analyticsService = FakeAnalyticsService(),
5453
featureFlagService = FakeFeatureFlagService(),
5554
timelineEventTypeFilterFactory = FakeTimelineEventTypeFilterFactory(),
5655
clientBuilderProvider = FakeClientBuilderProvider(),

libraries/matrix/impl/src/test/kotlin/io/element/android/libraries/matrix/impl/fixtures/fakes/FakeRustClientBuilder.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import org.matrix.rustcomponents.sdk.RequestConfig
1818
import org.matrix.rustcomponents.sdk.SlidingSyncVersionBuilder
1919
import uniffi.matrix_sdk.BackupDownloadStrategy
2020
import uniffi.matrix_sdk_crypto.CollectStrategy
21+
import uniffi.matrix_sdk_crypto.TrustRequirement
2122

2223
class FakeRustClientBuilder : ClientBuilder(NoPointer) {
2324
override fun addRootCertificates(certificates: List<ByteArray>) = this
@@ -26,6 +27,7 @@ class FakeRustClientBuilder : ClientBuilder(NoPointer) {
2627
override fun backupDownloadStrategy(backupDownloadStrategy: BackupDownloadStrategy) = this
2728
override fun disableAutomaticTokenRefresh() = this
2829
override fun disableBuiltInRootCertificates() = this
30+
override fun roomDecryptionTrustRequirement(trustRequirement: TrustRequirement) = this
2931
override fun disableSslVerification() = this
3032
override fun enableCrossProcessRefreshLock(processId: String, sessionDelegate: ClientSessionDelegate) = this
3133
override fun homeserverUrl(url: String) = this

0 commit comments

Comments
 (0)