Here's a minimal C++ unit testing library:
https://github.com/vahidk/minimal-cpp-test
It has very similar syntax to Google test library but it's a header only library and therefore easier to port across platforms.
Here's a minimal unit test:
#define DEFINE_TEST_MAIN
#include "test.h"
TEST(GroupName, TestName) {
EXPECT_EQ(1 + 2, 3);
}
And a minimal fixture:
class ClassName : public cyrus:Test {
public:
void Setup() override {
x = 5;
}
int x;
}
Test_F(ClassName, Test1) {
EXPECT_EQ(x, 5);
}
Hope this helps.