alanxz / rabbitmq-c

RabbitMQ C client
MIT License
1.77k stars 673 forks source link

CI enhancements #274

Open alanxz opened 9 years ago

alanxz commented 9 years ago

An issue to track the misc things I want to do with the CI system

Things dealing with testing:

ghost commented 8 years ago

Have you got an idea which testing framework to use? Would you consider a C++ testing framework, even though rabbitmq-c is a C library?

alanxz commented 8 years ago

I'm leaning towards cmocka. Its C, has a mocking framework included, has TAP/XML output, and supports the platforms I care about.

The only downside to CMocka is that newer versions aren't widely distributed on Linux systems. My thought on how to get around this is to include it as a git submodule.

At one point I did think about using gtest (which is C++), unfortunately this didn't work well as rabbitmq-c uses identifiers that are keywords in C++ (which should probably be changed anyway, but thats another issue). For the rare platform that doesn't have a C++ compiler, having an all-C solution is a nice feature.