From: "Przemysław Wojnowski" <esperanto@cumego.com>
To: emacs-devel@gnu.org
Subject: Testing library for C code
Date: Thu, 08 Oct 2015 13:36:30 +0200 [thread overview]
Message-ID: <60744168ef0e5c54fe322cc55ad89f6f@mail.iq.pl> (raw)
Hello everybody,
I'm looking at libraries for testing C code and I'm wondering
if it's acceptable to use C++ to write the tests for Emacs' C code?
Simply there are more choices when C++ can be used (for example
googletest, cppunit).
But if not, then there are C-only options too (for example
https://cmocka.org/).
The important part is breaking dependencies, which allow
to run tests in isolation. Mocks are standard way do do it.
Thanks,
Przemysław
next reply other threads:[~2015-10-08 11:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 11:36 Przemysław Wojnowski [this message]
2015-10-08 14:44 ` Testing library for C code Eli Zaretskii
2015-10-08 16:43 ` Przemysław Wojnowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=60744168ef0e5c54fe322cc55ad89f6f@mail.iq.pl \
--to=esperanto@cumego.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.