[TIP] Running C unit tests with pytest
Mateusz Łoskot
mateusz at loskot.net
Thu Feb 6 12:03:28 PST 2014
On 6 February 2014 12:13, John McNamara <jmcnamara13 at gmail.com> wrote:
> On 6 February 2014 09:30, Mateusz Łoskot <mateusz at loskot.net> wrote:
>>
>> On 6 February 2014 01:51, John McNamara <jmcnamara13 at gmail.com> wrote:
>> >
>> > The tutorial is here:
>> >
>> > http://pytest_c_testrunner.readthedocs.org
>>
>> What a great utility!
>> I'll try it as soon as I have a moment.
>>
>> By the way, shouldn't "Pytest & C' read 'Pytest & C/C++' and so on?
>
>
> Hi Mateusz,
>
> C++ tests could be supported in the same way. However C++ has a larger set
> of established test frameworks and test runners such as GoogleTest and
> Boost::Test. So I think it would be hard to make the case for using pytest
> with any of those.
John,
My confusion came up when I encountered this line:
"C unit tests then there are a lot of alternatives such as googletest"
AFAIK, googletest is C++ framework.
Best regards,
--
Mateusz Łoskot, http://mateusz.loskot.net
More information about the testing-in-python
mailing list