[TIP] Running C unit tests with pytest

John McNamara jmcnamara13 at gmail.com
Wed Feb 5 17:51:11 PST 2014


I've put together a small tutorial on running C unit tests with pytest based on the Yaml example in the pytest docs.

The tutorial is here:


The source code for the conftest.py and C unit test are on GitHub:


You can see what (intentionally) failing test cases look like here: 


This is really just a proof of concept and I'm still iterating on the docs but if anyone is interested or would like to give some feedback then I would be glad to hear.


More information about the testing-in-python mailing list