[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Testing library for C code
From: |
Przemysław Wojnowski |
Subject: |
Testing library for C code |
Date: |
Thu, 08 Oct 2015 13:36:30 +0200 |
User-agent: |
Roundcube Webmail |
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
- Testing library for C code,
Przemysław Wojnowski <=