Org-mode has grown a big and feature rich application. Help is always needed and highly appreciated. If you're not a lisp programmer, you still might help to prevent regressions and greatly improve the stability of Org-mode.
This page is meant to provide help with this kind of helping. We hope to provide all the information needed here, and hope to create tests for non-programmers too.
Currently we are in a very early planning phase, so will find only what we want to do. If you're not a worger yet, you may as well post ideas or code to the great Org mailing list.
diff (think export here).
The tutorial I'd need to write a test is one which lays out code I could copy and paste to do the following
Many of the above questions (how to we setup and tear down tests, and how can we make and check assertions) will depend heavily on the chosen testing tool. Two options posited to the list so far are…
Both of these elisp files have been included in the tools directory
inside this directory.
I've never used EmacsLispExpectations, so I can't make any reasonable judgment between the two, perhaps if someone can implement some tests in both we could come to some sort of agreement.
I implemented a toy test of org's html export facility using ert.el.
See file:ert-publish-test.el for the implementation. To run the test
open up org-publish-test.el, and M-x eval-buffer. This should load
ert, and run the simple html export test.
Running a minimal emacs should suppress custom config files:
emacs -q -l yourtest.el
Getting a list of all variables (incomplete):
grep -r defvar lisp/*.el