[Github-comments] [geany/geany] Criterion unit tests (#1427)

Thomas Martitz notifications at xxxxx
Mon Mar 13 07:50:49 UTC 2017


For now, I don't plan to really start Geany, but test functions that don't require a running instance (for sure, some mocking is required). I.e. just linking libgeany and call UUTs directly.

I looked at glib's built-in test framework but I found it's inferior. It requires manual registration, and (AFAIK) doesn't run individual test in a separate, isolated process which makes signal-related tests hard (e.g. the suite breaks if a single test gets a segfault). Criterion offers a broader range of assertion macros, too. It can also run individual tests in parallel for faster execution times, due to the process isolation.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1427#issuecomment-286036359
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170313/6811fc23/attachment.html>


More information about the Github-comments mailing list