News for hackers. Stuff that matters.
Re:Running C unit tests with Pytest by pkhuong on Saturday February 12, 2022 @12:23PM (#30314450)
We've had a lot of success combining that approach (cffi instead of ctypes) with property-based testing (https://github.com/HypothesisWorks/hypothesis) for the query engine at backtrace: https://engineering.backtrace.io/2020-03-11-how-hard-is-it-t... .
Re:Running C unit tests with Pytest by jaromir_ on Saturday February 12, 2022 @01:11PM (#30314850)
Have you exposed the C library to Python via ctypes as OP or have you taken a different approach?
Re:Running C unit tests with Pytest by pkhuong on Saturday February 12, 2022 @02:51PM (#30315711)
Just cffi, and keeping the headers free of inline implementation noise (a side benefit, in my opinion).