Gaia/Email: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
Line 45: Line 45:
** Tests by default run against  
** Tests by default run against  
* Back-End Tests
* Back-End Tests
** live in the [https://github.com/mozilla-b2g/gaia-email-libs-and-more gaia-email-libs-and-more repo] (aka GELAM)
** live in the [https://github.com/mozilla-b2g/gaia-email-libs-and-more gaia-email-libs-and-more repo] (aka GELAM).  For info on the tests in general, see: [[Gaia/Email/LoggestTestFramework]]
** run against JS implemented fake-servers by default, but can be run against real servers as well.
** run against JS implemented fake-servers by default, but can be run against real servers as well.
** contain a mixture of test types:
** contain a mixture of test types:
Line 51: Line 51:
*** higher level tests. ex: test_imap_general.js
*** higher level tests. ex: test_imap_general.js
*** end-to-end-ish tests. ex: test_compose.js (creates a message with an attachment, sends mail to itself, checks the messages and the attachment, sends a reply, etc.)
*** end-to-end-ish tests. ex: test_compose.js (creates a message with an attachment, sends mail to itself, checks the messages and the attachment, sends a reply, etc.)


== Dependencies ==
== Dependencies ==

Revision as of 19:54, 13 June 2013

Design Specs

Interaction

For the latest UX specifications, please visit: https://mozilla.box.com/applications


Visual

Development

The e-mail app consists of a back-end which is developed in https://github.com/mozilla-b2g/gaia-email-libs-and-more and a front-end which is developed as part of Gaia at https://github.com/mozilla-b2g/gaia/tree/master/apps/email. The intent of separating the library from the UI is to make the back-end reusable. The primary motivation is to allow a keyboard-friendly desktop UI to be developed against the library without trying to have a single UI trying to meet two radically different use cases.

To re-cap, check out these projects / repositories:

Features

See Gaia/Email/Features for a partial list of things we currently support or don't support.

Implementation

The following pages are an attempt to describe how the e-mail implementation works without requiring you to read the block comments in the source code in order to understand. The goal is to provide context of the e-mail problem domain and our approach to dealing with it. We are not going to go into low-level details because those can change frequently, but we will try to strike a balance by linking to the source code and its block comments.

Standardization Efforts

Testing

  • Front-End Tests
    • live in the gaia repo
    • Tests by default run against
  • Back-End Tests
    • live in the gaia-email-libs-and-more repo (aka GELAM). For info on the tests in general, see: Gaia/Email/LoggestTestFramework
    • run against JS implemented fake-servers by default, but can be run against real servers as well.
    • contain a mixture of test types:
      • unit tests. examples: test_intl_unit.js (simple), test_folder_storage.js (complex)
      • higher level tests. ex: test_imap_general.js
      • end-to-end-ish tests. ex: test_compose.js (creates a message with an attachment, sends mail to itself, checks the messages and the attachment, sends a reply, etc.)

Dependencies

(or rather, dependencies with wiki pages that tell you stuff)

https://wiki.mozilla.org/Gaia/Email/ActiveSync

Historical