Hacker News new | ask | show | jobs
by backslash_16 2604 days ago
From the comments below, it sounds like interfacing my C++ code with python using Cppyy would sacrifice performance.

Even so this will be awesome for unit testing. I really like the testing interface pytest provides, along with its parametrized tests.

Anyone else using python to test the logic their C/C++ code? I can't think of how I would test the memory allocation and freeing portion. Anyone think it's a bad idea?

1 comments

The fuzz converting data types back and forth is probably not worth it.

But one can test the interface to the program nicely from python (i.e. text or socket i/o).