Skip to content

Tests optimization and reliability - #6324

Draft
sosnovsky wants to merge 12 commits into
masterfrom
tests-optimization-live-test
Draft

sosnovsky wants to merge 12 commits into
masterfrom
tests-optimization-live-test

Conversation

@sosnovsky

Copy link
Copy Markdown
Collaborator

This PR reduces repeated test setup and improves test reliability and coverage:

  • combine related live Gmail scenarios to reuse account and browser setup
  • parameterize decryption, sender, and malformed-key tests to remove duplicated code
  • remove recovery tests already covered by the wrong-passphrase-then-success scenario
  • replace randomized buffer checks with deterministic cases covering padding, all byte values, and chunk boundaries
  • fix alias sender coverage and validate the expected sender in mocked password-protected messages
  • strengthen WKD fallback, key revocation, and PGP armor boundary assertions

no issue


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • if this PR fixes a security issue: I tried to bypass the new fix, and failed (leave unticked if this PR is not a security fix)
  • is documented clearly and usefully, or doesn't need documentation

@sosnovsky sosnovsky changed the title Tests optimization Tests optimization and reliability Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant