Skip to content

Fix instrumented tests #1744

@mzorz

Description

@mzorz

Comes from https://github.com/Automattic/simplenote-android/pull/1733/files#r2253935365

  1. Warning (⚠️): In addition to having unit test working, let's consider having instrumented tests working as well, in this or another follow-up PR (if not too much of a trouble). On that side of things I have the following:
    1. First, we need to add this androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.3.0' dependency to have those instrumented tests compile.
    2. Then, we need to use ./gradlew Simplenote:connectedDebugAndroidTest over ./gradlew connectedDebugAndroidTest to make them run, because otherwise compilation fails on the PasscodeLock module with multiple duplicate class failures on Kotlin (we might consider getting to the bottom of this).
    3. Finally, after managing to run instrumented tests successfully, you'll find that at least 13/74 fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions