GNU ELPA - gnus-mock

gnus-mock

Description
Mock Gnus installation for testing
Latest
gnus-mock-0.5.tar (.sig), 2024-Mar-31, 470 KiB
Maintainer
Eric Abrahamsen <eric@ericabrahamsen.net>
Atom feed
gnus-mock.xml
Website
https://elpa.gnu.org/packages/gnus-mock.html
Browse repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

This module provides a reproducible Gnus installation, including
dummy data, that can be used for Gnus development and testing.
Call `gnus-mock-start' from your currently-running Emacs to start a
new Emacs instance, skipping all user init (ie startup as -Q), but
preloading a mock Gnus installation.  All normal Gnus startup
commands will begin a session within this mock installation.

The developer can also specify a different Emacs executable to
start (for instance, when working on a Git branch checked out in a
worktree).  This is controlled by the `gnus-mock-emacs-program'
option.

The mock session starts with some predefined servers, as well as
some dummy mail data.  At startup, all dummy data is copied into a
temporary directory, which is deleted at shutdown.  The environment
can thus be loaded, tweaked, trashed, and re-loaded with impunity.
To fully restore a clean testing environment, simply quit the Emacs
process and restart it from the parent process by running
`gnus-mock-start' again.  Alternately it's possible to restart "in
place" by calling `gnus-mock-reload', though, depending on what the
developer has gotten up to, this isn't guaranteed to completely
restore the environment.

Users have two options for adding custom configuration to the mock
session:

- `gnus-mock-gnus-file' can be set to a filename, the contents
   of which will be appended to the .gnus.el startup file in the
   mock session.  This code will be executed at Gnus startup.

- `gnus-mock-init-file' should also be a filename, the contents
  of which will be appended to the init.el file that is loaded when
  the child Emacs process starts.

It's possible to compose and send mail in a mock Gnus session; the
mail will be sent using the value of `gnus-mock-sendmail-program'.
If Python is available on the user's system, this option will be
set to a Python program that simply accepts the outgoing mail and
shunts it to the "incoming" mailbox of the pre-defined nnmaildir
server.

Old versions

gnus-mock-0.4.5.tar.lz2020-May-06 114 KiB
gnus-mock-0.4.4.tar.lz2019-Oct-19 114 KiB
gnus-mock-0.4.3.tar.lz2019-Oct-18 114 KiB
gnus-mock-0.4.2.tar.lz2019-May-07 112 KiB
gnus-mock-0.4.1.tar.lz2019-Apr-10 108 KiB
gnus-mock-0.4.0.tar.lz2018-Dec-04 108 KiB
gnus-mock-0.3.0.tar.lz2018-Nov-17 107 KiB
gnus-mock-0.2.1.tar.lz2018-Nov-06 107 KiB
gnus-mock-0.2.0.tar.lz2018-Nov-01 107 KiB
gnus-mock-0.1.2.tar.lz2018-Oct-1861.8 KiB
gnus-mock-0.1.1.el.lz2018-Oct-133.33 KiB