unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Improving documentation for ert.el.
@ 2024-08-11  2:10 Richard Stallman
  2024-08-15  8:32 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2024-08-11  2:10 UTC (permalink / raw)
  To: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

I started to write tests for `cond*', and found that the documentation
in ert.el was unjelpful about how to run the test I had written.

I read the comment at the beginning, which told me about
`ert-run-tests-interactively'.  But what argument should I use?  The
doc string of `ert-run-tests-interactively' referred me to
`ert-select-tests'.

The doc string of `ert-select-tests' is abstract, and may be helpful
for understanding how its code works, but it is no help for a user
trying to see how to call `ert-run-tests-interactively' for any
specific case.

I that the name defined with `ert-deftest' would have something to do
with a name to specify, but was it the symbol itself or its value or
somehing else?  Since the comments did not say, I tried them but
confusion got in the way.  Eventually, after I started writing this, I
tried again and that that name did work right when passed to
`ert-run-tests-interactively'.

I think the documentation should say this very explicitly, at the top
of the file, and in `ert-run-tests-interactively', and also in
`ert-select-tests'.  This will be small compared with the size of
ert.el.


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-15  8:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-11  2:10 Improving documentation for ert.el Richard Stallman
2024-08-15  8:32 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).