thunderbird / thunderbird/thunderbird-android

Add Unit Tests for MessageActions Utility Class

Open
#9,261 0 comments 0 reactions 1 assignee View on GitHub

@shamim-emon is already working on this.

Since Jun 4, 2025.

Dominant language
Kotlin
Stars
14k
Forks
2.8k
Avg merge
3d 3h
Merged PRs (30d)
57

Description

MessageActions in com.fsck.k9.activity.compose contains utility methods for launching the MessageCompose activity with different configurations (compose, reply, reply-all, forward, edit draft, etc.).

This issue proposes writing comprehensive unit tests for MessageActions to ensure:

  • Correct Intent is created with expected extras and actions.

  • Fallback logic (like launching AccountSetup when no account is available) is verified.

  • All action methods (actionCompose, actionReply, actionForward, etc.) trigger appropriate flows.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.