Skip to content

[Feature Request]: Implement Tests to Run on CI #9

@theMr17

Description

@theMr17

Description

Currently, the project lacks automated tests that run on CI, which makes it difficult to ensure code quality and prevent regressions. Implementing a robust test suite in the CI pipeline will help maintain project stability and catch issues early.

Proposed Solution

  • Modify the GitHub Actions workflow to include a dedicated test job that runs on each push and pull request.
  • The test job should:
    • Checkout the latest code.
    • Set up JDK 17 21.
    • Grant execution permissions to gradlew.
    • Run unit tests using ./gradlew testDebugUnitTest.
    • Run instrumented tests using ./gradlew connectedAndroidTest (if applicable).
    • Report test results in the CI logs for easier debugging.
  • Ensure that the CI build fails if any test cases do not pass.

Additional Context

  • This will reduce manual testing effort.
  • We may need to configure GitHub Secrets for any necessary credentials, especially if running instrumented tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions