Closed Bug 1901962 Opened 1 year ago Closed 6 months ago

Improve code coverage by implementing new tests

Categories

(Thunderbird :: General, task)

Tracking

(Not tracked)

RESOLVED FIXED
129 Branch

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

(Keywords: leave-open)

Attachments

(12 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

I'll use this bug to create tests for sections of code that aren't already covered by tests. This bug replaces bug 1851536, for work after v128.

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/67902b555876 Refactor opening subdialogs in preferences tests. r=freaktechnik https://hg.mozilla.org/comm-central/rev/7120b716ab5f Add new tests which open (almost) all subdialogs in preferences. r=mkmelin https://hg.mozilla.org/comm-central/rev/4fbba20af548 Add tests of the password manager and primary password dialogs. r=mkmelin
Target Milestone: --- → 129 Branch
Pushed by brendan@thunderbird.net: https://hg.mozilla.org/comm-central/rev/c419e7fc2d6d follow-up - Skip test in MSIX builds. r=babolivier

These test sending messages from the compose window with a variety of connection/authentication
problems. They are closely related to the tests named browser_getMessages with the same suffixes.

Sending a message presents a variety of prompt windows to the user, particularly when something
goes wrong. I've tried to avoid writing tests that lock in this behaviour in the hope that one day
somebody will overhaul it.

Attachment #9422182 - Attachment description: WIP: Bug 1901962 - Test message sending scenarios. r=#thunderbird-reviewers → Bug 1901962 - Test message sending scenarios. r=#thunderbird-reviewers
Attachment #9422183 - Attachment description: WIP: Bug 1901962 - Fix some nits in the getMessages tests. r=#thunderbird-reviewers → Bug 1901962 - Fix some nits in the getMessages tests. r=#thunderbird-reviewers

Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/10ad967bf9ab
Test message sending scenarios. r=mkmelin
https://hg.mozilla.org/comm-central/rev/c2c920b05847
Fix some nits in the getMessages tests. r=mkmelin

Using environment variables we can pretend the OS date/time settings are different from the default.

These tests check that various labels and styles are applied correctly in different locales:

  • Matching the build locale (en-US).
  • With the same language but in a different region (en-NZ).
  • With very different weekday rules (ar-QA).
  • Our most popular non-English locales (de-DE, ja-JP).

These tests only run on Linux.

See Also: → 1921658

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/61b59ccef666
Test calendar i18n with different OS settings. r=mkmelin

I'm going to be working in this area, it would be good to know that I haven't broken it.

Note that I don't think these folder names should require hashing, but they currently do.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/dce25e7465d3
Explicitly test folders with names that require hashing on Windows. r=mkmelin

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/5c718315560e Test the "run junk mail controls" commands. r=mkmelin https://hg.mozilla.org/comm-central/rev/da8e02e4c929 Test the many ways to manually mark a message as junk. r=freaktechnik
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/3c2812d1291d follow-up - Stop waiting for a mutation that isn't going to happen. r=mkmelin
See Also: → 1964981

Most of this patch is upgrading CalDAVServer to authenticate multiple users, and the fallout from that.

See Also: → 1964295
Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/b2133e4071f0 Test there can be calendars with different usernames on the same server. r=mkmelin
See Also: → 1967664

Closing this now that ESR 140 has branched.

Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: