[PATCH 1/2] test: Add "test_expect_emacs_t" to assist with emacs testing.
David Edmondson
dme at dme.org
Mon Jan 16 09:11:30 PST 2012
I asked for feedback on the approach of implementing tests in .el[1] and
got only positive feedback (well, only one bit of feedback at all).
Here are some simpler tests implemented using this approach, trying to
address the concerns about seeing what failed. The test output is now
something like:
PASS notmuch-show-clean-address 1
PASS notmuch-show-clean-address 2
FAIL notmuch-show-clean-address 3
Expect: "ДБ <db-uknot at stop.me.uk>"
Output: "db-uknot at stop.me.uk"
Expect: "foo (at home) <foo at bar.com>"
Output: "foo <foo at bar.com>"
Expect: "foo [at home] <foo at bar.com>"
Output: "foo at home <foo at bar.com>"
Expect: "Foo Bar"
Output: nil
Obviously the first two tests passed and the third failed.
Footnotes:
[1] id:"cunmxabqs6k.fsf at hotblack-desiato.hh.sledj.net"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120116/4041a02b/attachment.pgp>
More information about the notmuch
mailing list